You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 28, 2021. It is now read-only.
Over in #70 (comment), I mentioned my issues with the then-in-progress v8 code hadn't yet completed all the steps in the PostCSS plugin migration guide. It looks like that step still hasn't been done; the postcss-8-nesting.js file is still using Once.
It looks like this project needs more updates to be fully PostCSS 8 compliant.
PostCSS 8 does a single CSS tree scan. Multiple plugins can leverage the same scan for better performance.
To use the single scan you need to remove root.walk* calls and move the code to Declaration(), Rule(), AtRule() or Comment() methods in a plugin’s object:
I'm experiencing a bug on v8.0.1 where CSS added from a previous plugin (like postcss-mixins) in the postcss config isn't processed by the later-defined postcss-nesting and I suspect that this might be the reason.
Steps to reproduce: Configure PostCSS with postcss-mixins before postcss-nesting. Then make a simple mixin with postcss-mixins that adds a nested rule. The postcss-nesting plugin will fail to convert the @nest into valid contemporary CSS.
Over in #70 (comment), I mentioned my issues with the then-in-progress v8 code hadn't yet completed all the steps in the PostCSS plugin migration guide. It looks like that step still hasn't been done; the
postcss-8-nesting.js
file is still usingOnce
.It looks like this project needs more updates to be fully PostCSS 8 compliant.
"Step 3: Take the most out of the new API" of the PostCSS plugin migration guide says:
postcss-nesting still has:
I'm experiencing a bug on v8.0.1 where CSS added from a previous plugin (like
postcss-mixins
) in the postcss config isn't processed by the later-definedpostcss-nesting
and I suspect that this might be the reason.Steps to reproduce: Configure PostCSS with
postcss-mixins
beforepostcss-nesting
. Then make a simple mixin with postcss-mixins that adds a nested rule. The postcss-nesting plugin will fail to convert the@nest
into valid contemporary CSS.Expected results:
Actual results:
The text was updated successfully, but these errors were encountered: