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

chore: add sideEffects to package.json #545

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Conversation

peterpeterparker
Copy link
Member

Motivation

I compared our setup with a sample Svelte app and noticed that the package.json contained a sideEffects field. While we do not necesseraly needs it, according documentation, it's advised to add it.

Changes

  • Specify a sideEffect for css in package.json to help bundlers tree shake those files when the lib is consumed.

@peterpeterparker peterpeterparker requested review from a team as code owners December 9, 2024 10:02
Copy link
Contributor

@yhabib yhabib left a comment

Choose a reason for hiding this comment

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

Thanks

@peterpeterparker peterpeterparker enabled auto-merge (squash) December 9, 2024 10:11
@peterpeterparker peterpeterparker merged commit ff6d3b0 into main Dec 9, 2024
8 checks passed
@peterpeterparker peterpeterparker deleted the chore/side-effects branch December 9, 2024 10:12
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