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.
1 parent 8be2787 commit 958cdf2Copy full SHA for 958cdf2
packages/vite/src/node/plugins/worker.ts
@@ -262,6 +262,7 @@ export function webWorkerPlugin(config: ResolvedConfig): Plugin {
262
},
263
264
load: {
265
+ filter: { id: workerOrSharedWorkerRE },
266
async handler(id) {
267
const workerMatch = workerOrSharedWorkerRE.exec(id)
268
if (!workerMatch) return
@@ -364,6 +365,7 @@ export function webWorkerPlugin(config: ResolvedConfig): Plugin {
364
365
366
367
transform: {
368
+ filter: { id: workerFileRE },
369
async handler(raw, id) {
370
const workerFileMatch = workerFileRE.exec(id)
371
if (workerFileMatch) {
0 commit comments