Skip to content

Add sideEffects: false hint#1477

Merged
kof merged 3 commits intomasterfrom
side-effects
Mar 23, 2021
Merged

Add sideEffects: false hint#1477
kof merged 3 commits intomasterfrom
side-effects

Conversation

@kof
Copy link
Copy Markdown
Member

@kof kof commented Mar 23, 2021

Webpack needs it to know there are no side effects
https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free and bundlephobia relies on it too

Webpack needs it to know there are no side effects
https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free and bundlephobia relies on it too
@kof kof requested a review from TrySound March 23, 2021 10:10
Comment thread packages/css-jss/package.json Outdated
"jss-preset-default": "10.6.0"
}
},
"sideEffects": false
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put it near entry points

@kof kof merged commit 8ed34c8 into master Mar 23, 2021
@kof kof deleted the side-effects branch March 23, 2021 10:57
@kof
Copy link
Copy Markdown
Member Author

kof commented Jun 27, 2021

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.

2 participants