Closed ryan-roemer closed 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.
webpack@4
webpack@next
package.json:sideEffects: false
Lodash has already rolled out this change in https://unpkg.com/lodash-es@4.17.5/package.json
This was originally uncovered / discussed at length in:
This PR should resolve the issues discussed in:
sideEffects: false
package.json
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
multibot
webpack@4
/webpack@next
will supportpackage.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
sideEffects: false
topackage.json
to allow webpack4 tree-shaking to actually remove all unused code.