Skip to content

Commit

Permalink
refactor: import.meta.url condition from renderChunk hook of worker…
Browse files Browse the repository at this point in the history
… plugin (#12696)
  • Loading branch information
sapphi-red committed Apr 2, 2023
1 parent 65f5ed2 commit fdef8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/worker.ts
Expand Up @@ -366,7 +366,7 @@ export function webWorkerPlugin(config: ResolvedConfig): Plugin {
}
)
}
if (code.match(workerAssetUrlRE) || code.includes('import.meta.url')) {
if (code.match(workerAssetUrlRE)) {
const toRelativeRuntime = createToImportMetaURLBasedRelativeRuntime(
outputOptions.format,
)
Expand Down

0 comments on commit fdef8fd

Please sign in to comment.