Skip to content
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

[Bug]: The bundled output is missing the CSS Modules class name #8655

Open
noshower opened this issue Dec 10, 2024 · 1 comment
Open

[Bug]: The bundled output is missing the CSS Modules class name #8655

noshower opened this issue Dec 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@noshower
Copy link
Contributor

noshower commented Dec 10, 2024

System Info

System:
OS: Windows 11 10.0.26100
CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13400F
Memory: 6.58 GB / 15.82 GB
Binaries:
Node: 20.12.0 - C:\Program Files\nodejs\node.EXE
npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
pnpm: 9.13.0 - C:\Program Files\nodejs\pnpm.CMD
Browsers:
Edge: Chromium (127.0.2651.74)
Internet Explorer: 11.0.26100.1882
npmPackages:
@rspack/cli: 1.1.6 => 1.1.6
@rspack/core: 1.1.6 => 1.1.6
@rspack/plugin-react-refresh: 1.0.0 => 1.0.0

Details

less 源码:
Image

打包后的产物,未压缩:
Image

这个 less 代码块,在项目中有多处,把 .dragVisible 换个其他的名字,打包后又是正常的。

我仅仅是把 @rspack/cli 、@rspack/plugin-react-refresh 和 @rspack/core 这三个包, 从 0.7.5 升级到 最新版本,就出现了打包问题。

这样的问题,在我们项目中有好几处。

复现配置

Image

当我将 localIdentName 配置注释掉,使用默认配置,打包就没有问题了。

Reproduce link

No response

Reproduce Steps

暂无最小复现例子

@noshower noshower added bug Something isn't working pending triage The issue/PR is currently untouched. labels Dec 10, 2024
@noshower noshower changed the title [Bug]: 编译产物缺失了类名 [Bug]: 打包产物缺失了类名 Dec 10, 2024
@chenjiahan chenjiahan changed the title [Bug]: 打包产物缺失了类名 [Bug]: The bundled output is missing the CSS Modules class name Dec 11, 2024
@jerrykingxyz jerrykingxyz removed the pending triage The issue/PR is currently untouched. label Dec 11, 2024
@daveskybet
Copy link
Contributor

Wondering whether this issue is linked to #8735 where the hash is completely numeric so when the leading numerical characters are removed it results in an empty hash?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants