GoogleChromeLabs / postcss-jit-props

A CSS custom property helper based on PostCSS. Supply a pool of variables and this plugin will add them to the stylesheet as they are used.
https://stackblitz.com/edit/jit-open-props?file=postcss.config.js
Apache License 2.0
219 stars 9 forks source link

use `WeakSet` to track processed nodes #34

Closed romainmenke closed 1 year ago

romainmenke commented 1 year ago

This has the exact same purpose and intended effect but avoids mutating objects in observable ways.