css && selector is not working properly during build #18843
Labels
bug: upstream
Bug in a dependency of Vite
has workaround
p2-edge-case
Bug, but has workaround or limited in scope (priority)
Describe the bug
When I write the following css module:
I expect
But I get:
This is not the specificity I was expecting and is causing bugs for me, specifically when using CSS modules
composes
property. I think the minifier is trying to be smart(?) but it doesn't work with CSS modulesReproduction
https://stackblitz.com/edit/vue3-vite-typescript-starter-klkv2k?file=src%2Fhi.module.css
Steps to reproduce
Run
pnpm build
and inspect output cssSystem Info
Used Package Manager
npm
Logs
Please see stackblitz after running prod build.
Validations
The text was updated successfully, but these errors were encountered: