'web worker, webpack 5, wasm-pack and vue
I am using the webpack 5 worker template
const worker = new Worker( new URL('./worker.js', import.meta.url))
but when I look at the network traffic I do not see worker.js being loaded and nothing happens when I do postMessage()
I got it working before using
const worker = new Worker(${process.env.BASE_URL}worker.js);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
