Skip to content

set sideEffects = false to package.json for webpack treeshaking#681

Open
eaglus wants to merge 1 commit intorrag:masterfrom
sgrishchenko:set-sideeffects-false-tree-shaking
Open

set sideEffects = false to package.json for webpack treeshaking#681
eaglus wants to merge 1 commit intorrag:masterfrom
sgrishchenko:set-sideeffects-false-tree-shaking

Conversation

@eaglus
Copy link
Copy Markdown
Contributor

@eaglus eaglus commented Nov 15, 2018

set sideEffects = false to package.json for webpack treeshaking optimizations: https://webpack.js.org/guides/tree-shaking/
see also https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free

i've checked all code, and i've not found any side effects on modules initialization (access to globals like window/document, css module imports etc).
this means that we can set sideEffects flag to false and have size optimizations in bundles, using react-stockcharts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant