carbon-preprocess-svelte 0.14.1 prunes Carbon's CSS in about a third of
the time, by reading only the Carbon stylesheets a build bundles.
Performance
- The plugins and
createCarbonOptimizer, and sooptimizeCarbonBun,
read only the Carbon stylesheets a build bundles as modules of their
own, where 0.14.0 parsed all 19 of Carbon 0.114's to learn what Carbon
defines (a2b7eda, #341).
Setting up the optimizer and pruningwhite.cssfor oneButton
takes 36.7 ms, where it took 103.9 ms (CI's 4-core AMD EPYC, median).
The CSS is the same.
The CLI,optimizeCarbonCss, and a build that pulls in Carbon's CSS
with a CSS@importstill read all 19.