carbon-preprocess-svelte 0.14.3 prunes a Carbon stylesheet that reaches
your CSS through a CSS @import or a Sass build again.
Fixes
- A CSS file with a Carbon class or token that the stylesheets the build
bundles don't define is pruned as with all of Carbon's stylesheets
(ec41060, #343).
0.14.1 and 0.14.2 read only the bundled ones,
so a stylesheet that reached the CSS another way went unpruned:
for one<Button kind="tertiary">,
withwhite.cssimported as a module andprose.cssbrought in by a
CSS@import, the plugins' optimizer leaves 18.9 kB (3.4 kB gzipped),
where 0.14.2 left 85.9 kB (8.7 kB).
The check adds about 3 ms per CSS file;
a build that falls back takes as long as 0.14.0 did, plus about 17 ms.