Skip to content

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