Features
-
under Vite, Rollup, Rolldown, webpack and Rspack,
optimizeComponentshands its rewrite count tooptimizeCssin the same build, so the build prints one summary, asoptimizeCarbonBundoes, instead of svelte-prune'srewrote N Carbon components for this app (M edits)beside the pruning summary. WithoutoptimizeCss(or with a silent one),optimizeComponentsprintsrewrote N Carbon componentsitself (#332)carbon-preprocess-svelte: rewrote 37 Carbon components and pruned their CSS assets/index-x3k9Qa.css 849.8 kB → 90.1 kB -89%
Fixes
optimizeComponentsreads a component with Svelte 5.59's<svelte:options customRenderer="…">like any other, so Carbon is rewritten for the props it passes; it was skipped without a warning (svelte-prune 0.15.1)