-
-
Notifications
You must be signed in to change notification settings - Fork 233
Closed
Description
https://github.com/JounQin/rspack-css-modules-spaces
When running pnpm dev:rspack
, the generated class name is rspack-repro-_src_space_folder_render_module_css-text
which works as expected, but for pnpm dev:rsbuild
, it's src-space folder-render-module__text-DF713n
in html and .src-space\ folder-render-module__text-DF713n
in .css
file.
And it's not possible to escape spaces into html.
The original el.classList.add(styles.text)
throws:
Uncaught (in promise) InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('src-space folder-render-module__text-DF713n') contains HTML space characters, which are not valid in tokens.
at Module.render (render.js:6:1)
at index.js:2:1
Metadata
Metadata
Assignees
Labels
No labels