Skip to content

v2.0.0

Compare
Choose a tag to compare
@phoenisx phoenisx released this 09 Aug 17:09
· 99 commits to main since this release

Breaking changes:

In settings.json, property cssvar.postcssSyntax has been modified. It now accepts an object value instead of an array of strings.

E.g. It accepts a Map between Sytax parser module name and file extensions for which this parser will be used.

// .vscode/settings.json
{
  "cssvar.postcssSyntax": {
    // [npm package name]: ["file extension list to use this syntax parser for"]
    "postcss-syntax": ["js", "jsx", "ts", "tsx"]
  }
}

Details: Customization Doc

Features:

  • Adds support for parsing js/ts template literals, which ultimately provides support for CSS variables used in styled-components and libraries which uses template literals for CSS-in-JS.

  • This extension now officially supports parsing css/scss/less/postcss syntaxes, no external parsers are needed. The size of the generated bundle is still under 200kB.

  • Adds support for all compatible PostCSS syntax parsers

  • Improved Documentation.

Full Changelog: v1.8.1...v2.0.0