question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Is this package side effect free?

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
davidjerlekecommented, Aug 22, 2020

Released with v3.0.28 🎉 .

1reaction
dipiashcommented, Aug 21, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found