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
import*asstylesfrom'./space folder/render.module.css';exportfunctionrender(){constel=document.createElement('div');el.className=styles.text;// styles.text contains a space which breaks stylingdocument.getElementsByTagName('body')[0].appendChild(el);el.innerHTML='hello, world';}
The generated class is src-space folder-render-module__text-WVNeAh which contains a space, but it's not possible to escape spaces, so the spaces in path should be changed to __ for example.
Bug report
Actual Behavior
generated
src_render_js.js:source
render.js:Expected Behavior
https://stackoverflow.com/questions/50812118/is-it-possible-to-use-the-space-character-in-css-class-names
The generated
classissrc-space folder-render-module__text-WVNeAhwhich contains a space, but it's not possible to escape spaces, so the spaces in path should be changed to__for example.How Do We Reproduce?
https://github.com/JounQin/rspack-css-modules-spaces
Run
pnpm dev:webpackPlease paste the results of
npx webpack-cli infohere, and mention other relevant information