Skip to content

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