Hi!
When using inline option in the config, I found duplicate worker code in my bundle.
Perhaps this is because of incorrect use of createObjectURL and revokeObjectURL in the case of inline: true option.
I believe in line 186 👇, the argument of URL.revokeObjectURL should not be a string with all the worker code inside it, but it should be a product of URL.createObjectURL method.
|
URL.revokeObjectURL(${workerUrl}); |
Hi!
When using inline option in the config, I found duplicate worker code in my bundle.
Perhaps this is because of incorrect use of
createObjectURLandrevokeObjectURLin the case ofinline: trueoption.I believe in line 186 👇, the argument of
URL.revokeObjectURLshould not be a string with all the worker code inside it, but it should be a product ofURL.createObjectURLmethod.workerize-loader/src/index.js
Line 186 in 99d98e4