Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eaglus
Copy link
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