workerize-loader
workerize-loader copied to clipboard
FetchCompileWasmTemplatePlugin is not a constructor
I'm running into this in my react app (next.js) when trying to use the workerize-loader!./myWorker
any update?
The reason is the plugin was renamed to FetchCompileWasmPlugin in Webpack 5
@rjgotten, how to fix it?
@sadeq-qafari There is no way of fixing it, short of patching the package.
I actually ended up writing my own instead - because workerize-loader has some other nasty breakage wrt webpack cache that makes it produce unreliable output: https://github.com/developit/workerize-loader/issues/131#issuecomment-1262216608 and I didn't like several other aspects of its API surface.
However, that stuff is company code I can't share. Sorry.