[Bug] If/Else treeshaking with object declared as const #3090
Unanswered
kosheeta
asked this question in
Troubleshooting
Replies: 1 comment
-
Any suggestions? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey! I'm using a library, where in one file declared this:


And the second file has this usage:
But snowpack doing a treeshake (even if I turn it off in 'config.optimize.treeshake'!) and I'm getting this:

This produces an error in other class method. How to fix it? Maybe this is a bug? Thank you!
P. S. All works properly with react-scripts (webpack)
Beta Was this translation helpful? Give feedback.
All reactions