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
Describe the bug
I'm using stylus as the css preprocessor. This syntax is no longer working and throwing an error instead. It looks like the processed code does not add the necessary brackets for keyword :global.
I also ran into this bug earlier this day. Tried downgrading this plugin (4.x ~ 5.0.3) and Svelte (3.x) but have no success. For anyone looking into this issue, I created a minimal reproduction.
Literally, it skips the entire transformation if the style tag is not marked as global. Historically, the global styles feature of this preprocessor only supported global blocks, so it sounded logical. This is no longer correct if we need to support :global selectors inside the style body.
Also notice that the test suite does not cover this processor. Although the transformer behaves correctly, it is not run at all.
A quick solution is to remove the lines listed above. But beware that the transformation then runs through every style tag even if it does not contain any relevant selector, which impacts the performance.
Describe the bug
I'm using
stylus
as the css preprocessor. This syntax is no longer working and throwing an error instead. It looks like the processed code does not add the necessary brackets for keyword:global
.Logs
To Reproduce
Try the above code
Expected behavior
No error occurs.
Stack trace
Stack trace goes here...
Information about your project:
Your browser and the version: No need
Your operating system: Debian bookworm
svelte-preprocess
version 5.0.4Rollup
Additional context
It used to work.
The text was updated successfully, but these errors were encountered: