Skip to content

Commit

Permalink
chore: comment wording
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored Mar 29, 2023
1 parent 69f048b commit 8a76fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function bundleWorkerEntry(
const workerPostPlugin: Plugin = {
name: 'vite:worker-post',
resolveImportMeta(property, { chunkId, format }) {
// document is undefined in the worker, so we need to avoid iife generate it
// document is undefined in the worker, so we need to avoid it in iife
if (property === 'url' && format === 'iife') {
return `new URL('${chunkId}', self.location.href).href`
}
Expand Down

0 comments on commit 8a76fec

Please sign in to comment.