rspack
rspack copied to clipboard
[Bug]: Weird `@module-federation/runtime/rspack` log with Rspack v1.x.x
System Info
System: OS: macOS 14.5 CPU: (10) arm64 Apple M1 Max Memory: 1005.28 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node Yarn: 1.22.22 - ~/.nvm/versions/node/v20.14.0/bin/yarn npm: 10.7.0 - ~/.nvm/versions/node/v20.14.0/bin/npm pnpm: 7.28.0 - ~/Library/pnpm/pnpm bun: 1.1.8 - ~/.bun/bin/bun Browsers: Brave Browser: 126.1.67.123 Chrome: 127.0.6533.73 Edge: 127.0.2651.74 Safari: 17.5
Details
With 1.x.x versions of Rspack, there is a weird huge log when using @module-federation/enhanced/rspack. (let me know if that issue should be logged there instead. It seems benign, the app still works as expected. But there still seems to be something weird going on.
I think it simply has to do with aligning the stats option with Webpack's. Noteworthy that this log does not appear with Webpack though.
When using Rspack v0.7.5, the log does not appear (on my project, it does not appear on 1.0.0-alpha.2 but only later. With rspack-repro, it appears from 1.0.0-alpha.0 for some reason).
The log snippet:
@module-federation/runtime/rspack.js!=!data:text/javascript,import __module_federation_bundler_runtime__ from "/Users/markmassoud/dev/rspack-repro/node_modules/.pnpm/@[email protected]/node_modules/@module-federation/webpack-bundler-runtime/dist/index.cjs.js"
The full log:
Reproduce link
https://github.com/markmssd/rspack-repro/tree/rspack-javascript-warning
Reproduce Steps
git clone https://github.com/markmssd/rspack-repro/tree/rspack-javascript-warning
cd rspack-javascript-warning && pnpm i
pnpm dev:rspack
// the weird log appears
Now downgrade to Rspack v0.7.5 and repeat the steps, the log does not appear.