esbuild icon indicating copy to clipboard operation
esbuild copied to clipboard

CSS class selectors in @scope declaration in css module not transformed?

Open IanBellomy opened this issue 3 months ago • 1 comments

Was surprised to discover class selectors in @scope in a module.css file weren't transformed but also that :local(...) is passed through. Apologies for any ignorance on my part.

Input


@scope(.component) to (:local(.slot)){

    .slot{ ... }

}  

Output

@scope(.component) to (:local(.slot)){

    .module_slot{ ... }

}  

Expected

@scope(.module_component) to (.module_slot){

    .module_slot{ ... }

}  

(v0.25.12)

IanBellomy avatar Nov 04 '25 12:11 IanBellomy

Thanks for the report. I wasn't aware of that syntax.

evanw avatar Nov 04 '25 15:11 evanw