ThisIsManta / stylus-supremacy

A Node.js script that helps formatting Stylus files.
https://thisismanta.github.io/stylus-supremacy
MIT License
88 stars 9 forks source link

Not support @import with media query #111

Open i18n-now opened 1 month ago

i18n-now commented 1 month ago
image

https://philarcher.org/diary/2011/importrules/

ThisIsManta commented 4 weeks ago

The error was threw by Stylus parser as seen in the stack trace above and the same error can be reproducible in the official website below.

Stylus Supremacy (as a formatter) relies on Stylus parser to produce an AST in order to produce a formatted string. I'm afraid we have to wait for Stylus to officially support this beforehand.

image