Releases: carbon-design-system/carbon-preprocess-svelte
Releases · carbon-design-system/carbon-preprocess-svelte
v0.1.0
v0.1.0-rc.5
Fixes
- add separate entry point for CJS bundle
v0.1.0-rc.4
Fixes
- add TypeScript as a direct dependency
v0.1.0-rc.3
Features
- use
svelte-preprocess
in theoptimizeCss
plugin to parse TypeScript syntax in Svelte components
Documentation
- list available theme options for the
elements
preprocessor
v0.1.0-rc.2
Fixes
- add
purgecss
as a dependency and exclude from bundle
Documentation
- add
optimizeCss
API to README
v0.1.0-rc.1
Fixes
- elements: only replace token in property instead of the entire property
- elements: do not emit warning if token is falsy
- add exports map to
package.json
sosvelte.config.js
works properly - temporarily omit
optimizeCss
plugin from library
Documentation
- use ESM instead of CJS syntax in
svelte.config.js
usage examples
v0.1.0-rc.0
Release candidate 0.
- optimizeImports: rewrites Carbon Svelte imports to their source path in the
script
block - optimizeCss: Rollup plugin that removes unused CSS using PurgeCSS
- elements: computes Carbon theme tokens in the
style
block - icons: inlines Carbon icons in the
markup
block - pictograms: inlines Carbon pictograms in the
markup
block - collectHeadings: extract heading elements (e.g.,
<h1>
,<h2>
) from themarkup