-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SideEffects false #21663
Comments
Related #16059. |
Not quite, It's up to the bundler to understand what to remove and what not to. From the webpack tree-shaking guide:
We can actually test this now, the three.js/test/treeshake/index.js Line 1 in c935038
If you remove all |
It seems there was also some confusion about the |
@Mugen87 better to test its effects with common bundlers first. I tested it months ago with webpack (just by removing the flag in |
Sounds good! |
thank you all |
Re package.json with
sideEffects = false
, there are a bunch of/*@__PURE__*/
comments around the code that I think we can safely get rid of? would that be correct @marcofugaro ?I can make a PR for it if so.
The text was updated successfully, but these errors were encountered: