Skip to content

Leverage single scan visitor API

Pre-release
Pre-release
Compare
Choose a tag to compare
@ChristianMurphy ChristianMurphy released this 27 Sep 18:42
· 971 commits to main since this release
v9.3.0
5b82ec4

⚠️ this release unintentionally contains breaking changes, please upgrade directly to version 10, or hold at versio 9.1.0 if that is not possible ⚠️


postcss-combine-duplicated-selectors now leverages the postcss single scan visitor API.
This has a few implications:

  • With new API, all plugins can share a single scan of the CSS tree. It makes CSS processing up to 20% faster.
  • Plugins will re-visit changed nodes to reduce compatibility issues between plugins. Now the order of plugins in your PostCSS config will be less important.

source: https://github.com/postcss/postcss/releases/tag/8.0.0

For more information on the new tree walking API see: https://evilmartians.com/chronicles/postcss-8-plugin-migration#step-3-take-the-most-out-of-the-new-api and https://github.com/postcss/postcss/releases/tag/8.0.0