Open brochington opened 2 months ago
Rebuild multiple times is because wasm build triggers multiple file changes, and rspack's watchOptions.aggregateTimeout
time interval is small.
Multiple assets emit different content to the same filename
This error seems to be a problem with the rspack code. I will transfer this issue to the rspack repo.
Added a debug log for conflicting assets:
original_source:
asset_source:
This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
Version
Details
I have a project that contains two packages, one which is a react app, and the other a wasm-pack based wasm library.
Everything works as expected when starting the Rsbuild dev server, but if I rebuild the wasm library, the dev compiler fails with the following console error:
I am unsure why the compiler runs twice as well.
I would like to be able to rebuild the wasm module, and have the hmr pick up the changed package and reload.
Reproduce link
https://github.com/brochington/mult-assets-rsbuild-repro
Reproduce Steps