Open HenrikFricke opened 4 years ago
Bundle size increases by ~12kb (gzipped) just by importing the Modal component of react-overlays.
Modal
react-overlays
Steps to reproduce the behavior:
The package.json should have a "sideEffect": false flag to enable tree shaking.
package.json
"sideEffect": false
As you can see, popper.js gets removed and decreases the bundle size quite significantly.
sure, we'd take a PR for this
Describe the bug
Bundle size increases by ~12kb (gzipped) just by importing the
Modal
component ofreact-overlays
.To Reproduce
Steps to reproduce the behavior:
react-overlays
Expected behavior
The
package.json
should have a"sideEffect": false
flag to enable tree shaking.Screenshots
Bundle size with sideEffects flag
As you can see, popper.js gets removed and decreases the bundle size quite significantly.
Bundle size without the flag
Environment
Resources