-
-
Notifications
You must be signed in to change notification settings - Fork 781
Labels
bugSomething isn't workingSomething isn't working
Description
System Info
System:
OS: Windows 11 10.0.22631
CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13900KF
Memory: 56.92 GB / 95.85 GB
Binaries:
Node: 23.5.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
npm: 9.6.6 - ~\AppData\Roaming\npm\npm.CMD
pnpm: 8.15.4 - ~\AppData\Roaming\npm\pnpm.CMD
bun: 1.1.2 - ~\.bun\bin\bun.EXE
Browsers:
Edge: Chromium (127.0.2651.74)
Internet Explorer: 11.0.22621.3527
npmPackages:
@rspack/cli: ^1.1.8 => 1.1.8
@rspack/core: ^1.1.8 => 1.1.8
Details
When optimization.concatenateModules is set to true in Rspack, the webpack-license-plugin generates an empty license file instead of outputting the licenses of dependencies. However, it works correctly with Webpack using the exact same configuration.
Reproduce link
https://github.com/Robot-Inventor/rspack-webpack-license-plugin
Reproduce Steps
- Run
pnpm run build - With Webpack, the
webpack-license-plugincorrectly generates./webpack-dist/oss-licenses.json. However, with Rspack, it generates an empty JSON file at./rspack-dist/oss-licenses.json. - When
optimization.concatenateModulesis set tofalse, thewebpack-license-plugingenerates the correct JSON with Rspack just as it does with Webpack. However, this results in an increase in the script bundle size.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working