FormidableLabs / react-music

Make beats with React!
http://reactmusic.surge.sh
MIT License
2.72k stars 197 forks source link

[multibot] Add `sideEffects: false` to `package.json` #51

Closed ryan-roemer closed 6 years ago

ryan-roemer commented 6 years ago

webpack@4 / webpack@next will support package.json:sideEffects: false wherein libraries can indicate their ESM re-exports are side effect free and can be much more efficiently removed for smaller, faster final bundles.

Lodash has already rolled out this change in https://unpkg.com/lodash-es@4.17.5/package.json

Issues

This was originally uncovered / discussed at length in:

This PR should resolve the issues discussed in:

Changes

This PR has been automatically opened by your friendly multibot. The transform code and documentation is available at: https://github.com/FormidableLabs/multibot-examples/tree/master/transforms/webpack-side-effects