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

Add sideEffect property in package.json #1136

Open
beeme1mr opened this issue Feb 6, 2025 · 1 comment
Open

Add sideEffect property in package.json #1136

beeme1mr opened this issue Feb 6, 2025 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@beeme1mr
Copy link
Member

beeme1mr commented Feb 6, 2025

Tree shakers like Webpack leverage the sideEffect property in libraries package.json. We should confirm that sideEffect: false won't have any negative impact so that tree shaking can be more effective.

@beeme1mr beeme1mr added good first issue Good for newcomers help wanted Extra attention is needed labels Feb 6, 2025
@beeme1mr
Copy link
Member Author

beeme1mr commented Feb 6, 2025

Here's another article that discusses tree shaking in more detail.

https://www.smashingmagazine.com/2021/05/tree-shaking-reference-guide/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant