CSS Modules - class names not mangled in @scope
rule
#18597
Labels
bug: upstream
Bug in a dependency of Vite
feat: css
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
In a css modules file, for an input of
I expect an output of (e.g.)
Both lightningcss and postcss, used via their respective apis directly, do this transform correclty.
However, vite does not mangle the class name selector in the
@scope
at-rule, resulting in:Reproduction
https://stackblitz.com/edit/vitejs-vite-xyfgcb?file=main.js,index.html,style.module.css&terminal=dev
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: