Skip to content

chore: do not bundle svgo#293

Closed
KazariEX wants to merge 1 commit into
unjs:mainfrom
KazariEX:chore/do-not-bundle-svgo
Closed

chore: do not bundle svgo#293
KazariEX wants to merge 1 commit into
unjs:mainfrom
KazariEX:chore/do-not-bundle-svgo

Conversation

@KazariEX

Copy link
Copy Markdown

svgo and its dependencies (css-tree, with 810.4KB bundled in v4) are widely used in the ecosystem. Bundling them into ipx will only increase the size of the end user's node_modules.

  • @nuxt/vite-builder -> cssnano -> cssnano-preset-default -> postcss-svgo -> svgo -> css-tree
  • @nuxt/fonts -> unifont / fontless -> css-tree
  • stylelint -> css-tree

@KazariEX KazariEX requested a review from pi0 as a code owner February 21, 2026 07:16
@pi0

pi0 commented Jun 26, 2026

Copy link
Copy Markdown
Member

I appreciate the PR but bundling is in v4 is due to CJS/ESM bundling issues with sub-dependencies -- you can see the reason in build.config where you removed the line.

@pi0 pi0 closed this Jun 26, 2026
@KazariEX KazariEX deleted the chore/do-not-bundle-svgo branch June 26, 2026 07:33
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