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]: Incompatibility with webpack-license-plugin #8924

Open
Robot-Inventor opened this issue Jan 2, 2025 · 0 comments
Open

[Bug]: Incompatibility with webpack-license-plugin #8924

Robot-Inventor opened this issue Jan 2, 2025 · 0 comments
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.

Comments

@Robot-Inventor
Copy link

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

  1. Run pnpm run build
  2. With Webpack, the webpack-license-plugin correctly generates ./webpack-dist/oss-licenses.json. However, with Rspack, it generates an empty JSON file at ./rspack-dist/oss-licenses.json.
  3. When optimization.concatenateModules is set to false, the webpack-license-plugin generates the correct JSON with Rspack just as it does with Webpack. However, this results in an increase in the script bundle size.
@Robot-Inventor Robot-Inventor added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

1 participant