Closed noname0310 closed 6 months ago
Is it safe to ignore this warning?
Yes. For Wasm threads this sort of circular dependency between a Worker and the main JS is essential. It's a shame bundlers don't handle it better, but it's an old and well-known issue and for now can be only ignored.
warning message from my project:
Looking at the bundled code, it seems that the Circular dependency is formed in the order of pkg.js -> workerHelpers.js -> workerHelpers.worker.js -> pkg.js
This article looks like the same case: https://stackoverflow.com/questions/73157442/webpack-warning-using-webworker-circular-dependency-between-chunks-with-runtime
I also tried running the webpack tests inside the test directory of this repository and saw the same warnings:
Is it safe to ignore this warning?