Skip to content

Mark CSS files as not sideeffect-free#647

Merged
FloEdelmann merged 1 commit intomainfrom
side-effects-css
Apr 21, 2026
Merged

Mark CSS files as not sideeffect-free#647
FloEdelmann merged 1 commit intomainfrom
side-effects-css

Conversation

@FloEdelmann
Copy link
Copy Markdown
Owner

With sideEffects: false, webpack's production tree-shaker considers every module in the package — including CSS — as pure, so the CSS import generated by Nuxt's css: [] entry gets dropped from the production bundle.

@FloEdelmann FloEdelmann added the npm-patch When a PR with this label is merged into master, a new patch version (x.x.X) is released on npm. label Apr 21, 2026
@FloEdelmann FloEdelmann merged commit d0277aa into main Apr 21, 2026
@FloEdelmann FloEdelmann deleted the side-effects-css branch April 21, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

npm-patch When a PR with this label is merged into master, a new patch version (x.x.X) is released on npm.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant