Leverage single scan visitor API
Pre-release
Pre-release
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