We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c505f6e + 92f9492 commit 3cf9f49Copy full SHA for 3cf9f49
src/core/createWebWorkerPromise.ts
@@ -49,7 +49,7 @@ async function createWebWorkerPromise (existingWorker: Worker | null, pipelineWo
49
// Use the version built with the bundler
50
//
51
// Bundlers, e.g. WebPack, Vite, Rollup, see these paths at build time
52
- worker = new Worker(new URL('../web-workers/pipeline.worker.js', import.meta.url))
+ worker = new Worker(new URL('../web-workers/pipeline.worker.js', import.meta.url), { type: 'module' })
53
} else {
54
if (workerUrl.startsWith('http')) {
55
const response = await axios.get(workerUrl, { responseType: 'blob' })
0 commit comments