-
-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS modules with path which contains spaces does not work as expected #1626
Comments
I tried to add space pattern into Line 263 in 9dd1966
|
Not sure if #997 related. |
@alexander-akait Any time to take a look? |
Yeah, technically we have CSS.escape to escape special character before inserting them in JS and it works good for non space characters, but there are some limitation with the
But https://html.spec.whatwg.org/multipage/dom.html#global-attributes:classes-2
Let's fix it |
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
class
issrc-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.How Do We Reproduce?
https://github.com/JounQin/rspack-css-modules-spaces
Run
pnpm dev:webpack
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: