Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

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

Merged
merged 1 commit into from
Feb 5, 2018

Conversation

ryan-roemer
Copy link
Member

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

  • Add sideEffects: false to package.json to allow webpack4 tree-shaking to actually remove all unused code.

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

…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:

* webpack/webpack#1750

This PR should resolve the issues discussed in:

* FormidableLabs/victory#549
* FormidableLabs/redux-little-router#262

## Changes

* Add `sideEffects: false` to `package.json` to allow webpack4 tree-shaking to actually remove all unused code.

> This PR has been automatically opened by your friendly [`multibot`](https://github.com/FormidableLabs/multibot/). The transform code and documentation is available at: https://github.com/FormidableLabs/multibot-examples/tree/master/transforms/webpack-side-effects
@coveralls
Copy link

coveralls commented Feb 5, 2018

Coverage Status

Coverage remained the same at 94.406% when pulling d496d95 on multibot-chore-webpackSideEffects into 06cfe7a on master.

@ryan-roemer ryan-roemer merged commit 33fe30e into master Feb 5, 2018
@ryan-roemer ryan-roemer deleted the multibot-chore-webpackSideEffects branch February 5, 2018 18:42
jaredbrookswhite pushed a commit to jaredbrookswhite/radium that referenced this pull request Aug 22, 2018
…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. (FormidableLabs#965)

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:

* webpack/webpack#1750

This PR should resolve the issues discussed in:

* FormidableLabs/victory#549
* FormidableLabs/redux-little-router#262

## Changes

* Add `sideEffects: false` to `package.json` to allow webpack4 tree-shaking to actually remove all unused code.

> This PR has been automatically opened by your friendly [`multibot`](https://github.com/FormidableLabs/multibot/). The transform code and documentation is available at: https://github.com/FormidableLabs/multibot-examples/tree/master/transforms/webpack-side-effects
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants