Skip to content

feat: declare package as side-effect free#107

Open
GauBen wants to merge 1 commit into
lukeed:masterfrom
GauBen:patch-1
Open

feat: declare package as side-effect free#107
GauBen wants to merge 1 commit into
lukeed:masterfrom
GauBen:patch-1

Conversation

@GauBen
Copy link
Copy Markdown

@GauBen GauBen commented Feb 7, 2025

Hey! Small update to enable complete tree-shaking of clsx and prevent bare imports import "clsx"; from ending in bundles

Reference: https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free (rollup also supports it)

Hey! Small update to enable complete tree-shaking of clsx and prevent bare imports `import "clsx";` from ending in bundles
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