We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Using 1.3.10 version of Rspack.
1.3.10
System: OS: macOS 15.0.1 CPU: (14) arm64 Apple M3 Max Memory: 283.58 MB / 36.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 23.7.0 - ~/Library/Caches/fnm_multishells/74108_1748231646341/bin/node npm: 10.9.2 - ~/Library/Caches/fnm_multishells/74108_1748231646341/bin/npm pnpm: 10.8.1 - ~/Library/Caches/fnm_multishells/73593_1748231644604/bin/pnpm bun: 1.2.9 - ~/.bun/bin/bun Browsers: Chrome: 136.0.7103.114 Safari: 18.0.1
When compress is enabled, there will an undefined lng variable which will cause a runtime error.
compress
lng
new class { }().init({ resources: { 'zh-CN': { translation: { _created_in: "\uFF0C\u521B\u5EFA\u4E8E" } }, 'en-US': { translation: { _created_in: ', created' } } }, lng }); let a = 1; export { a };
https://github.com/fi3ework-reproduction/rspack-compress-bug
dist-difference
rslib.config.ts
The text was updated successfully, but these errors were encountered:
Reproduced in SWC playground in 1.11.24 (link), while fixed in 1.11.29 (link), we could close this issue after SWC bumped.
Sorry, something went wrong.
GiveMe-A-Name
No branches or pull requests
System Info
Using
1.3.10
version of Rspack.System:
OS: macOS 15.0.1
CPU: (14) arm64 Apple M3 Max
Memory: 283.58 MB / 36.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 23.7.0 - ~/Library/Caches/fnm_multishells/74108_1748231646341/bin/node
npm: 10.9.2 - ~/Library/Caches/fnm_multishells/74108_1748231646341/bin/npm
pnpm: 10.8.1 - ~/Library/Caches/fnm_multishells/73593_1748231644604/bin/pnpm
bun: 1.2.9 - ~/.bun/bin/bun
Browsers:
Chrome: 136.0.7103.114
Safari: 18.0.1
Details
When
compress
is enabled, there will an undefinedlng
variable which will cause a runtime error.Reproduce link
https://github.com/fi3ework-reproduction/rspack-compress-bug
Reproduce Steps
dist-difference
or seerslib.config.ts
to see toggle thecompress
field.The text was updated successfully, but these errors were encountered: