github carbon-design-system/carbon-preprocess-svelte v0.12.8

one hour ago

Features

  • under Vite, Rollup, Rolldown, webpack and Rspack, optimizeComponents hands its rewrite count to optimizeCss in the same build, so the build prints one summary, as optimizeCarbonBun does, instead of svelte-prune's rewrote N Carbon components for this app (M edits) beside the pruning summary. Without optimizeCss (or with a silent one), optimizeComponents prints rewrote N Carbon components itself (#332)

    carbon-preprocess-svelte: rewrote 37 Carbon components and pruned their CSS
      assets/index-x3k9Qa.css  849.8 kB  →  90.1 kB  -89%
    

Fixes

  • optimizeComponents reads 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)

Don't miss a new carbon-preprocess-svelte release

NewReleases is sending notifications on new releases.