-
Notifications
You must be signed in to change notification settings - Fork 104
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
Mark the module as side-effect-free #58
Comments
Thanks @EvgenyOrekhov. I was not aware of this. |
Not sure whether it had an actual effect. BundlePhobia reports that every individual export is 3 KB: https://bundlephobia.com/[email protected]. |
I don't think it did. I think this is due to exporting the I think it may be possible to support enums while also taking better advantage of tree shaking. Some more discussion of this happening in #55. |
See https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free.
This will allow a more efficient tree-shaking.
The text was updated successfully, but these errors were encountered: