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.

sideEffects flag disrupts treeshaking

See original GitHub issue

Webpack sideEffects doesn’t compile properly in latest version of Webpack 4.25.1.

Removing it fixes this issue.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
char0ncommented, Nov 27, 2018

@petrjaros, @Cheprer glad we’ve figured it out. Using newer versions of monet is highly recommended because of this implicit fiddling with system prototypes. Can we close this, as this doesn’t seem to be the cause of problem anymore ?

0reactions
char0ncommented, Dec 4, 2018

Closing this, as the problem was somewhere else.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tree Shaking - webpack
Clarifying tree shaking and sideEffects ... The sideEffects and usedExports (more known as tree shaking) optimizations are two different things. sideEffects is ...
Read more >
Side effects flag for tree shaking · Issue #744 - GitHub
The package.json should have a "sideEffect": false flag to enable tree shaking. Screenshots. Bundle size with sideEffects flag. As you can see, ...
Read more >
Question about tree-shaking / side-effects - Stack Overflow
I am trying to reduce bundle size of my nextjs project and I have some problem with tree shaking. Let me explain. I...
Read more >
Tree Shaking React Native Apps - Klarna Engineering
Tree Shaking is a form of dead-code elimination related specifically to removal of unused exports. If we would concatenate all modules, unused ...
Read more >
Tree Shaking Examples - Katerina198b
A side effect is defined as a code that performs a special behaviour when imported, other than exposing one or more exports. Let's...
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