Question: Is this package side effect free?
See original GitHub issueI found this on Reddit and saw it exports as an EcmaScript Module, but doesn’t have a sideEffects
property in package.json
.
Details on the sideEffects
property: https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free
It’s a link to the Webpack guides, but it’s the most in-depth explanation on sideEffects
with examples that applies to Javascript itself and other bundlers used by consumers.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Everything you never wanted to know about side effects
What are side effects? A side effect, in an ECMAScript module context, is code that performs some externally-visible behaviour (that is, ...
Read more >What Does Webpack 4 Expect From A Package With sideEffects
The "sideEffects": false flag in big-module's package.json indicates that the package's modules have no side effects (on evaluation) and only ...
Read more >Mark the package as side-effect-free with "sideEffects": false?
In this case, having an issue will help us to find this “side effects”. Semantic is not the right word. It's a hack....
Read more >Tree Shaking - webpack
Mark the file as side-effect-free. In a 100% ESM module world, identifying side effects is straightforward. However, we aren't there quite yet, so...
Read more >Importing side effects - Questions - Babylon.js Forum
Yes, I am. first the build system will change a bit for us to be able to support that correctly, and then I...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Released with v3.0.28 🎉 .
Hello. I have just investigated this question with bundle analyzer - checked library size after app build with everything examples. Size it not depends if exist
sideEffects
option or not.