Skip to content

Commit

Permalink
fix: remove other worker options
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed May 24, 2021
1 parent e00e31e commit 3d1861d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/plugins/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ export function webWorkerPlugin(config: ResolvedConfig): Plugin {

const workerConstructor =
query.sharedworker != null ? 'SharedWorker' : 'Worker'
const { worker, inline, sharedworker, ...optionsFromQuery } = query
const workerOptions = { ...optionsFromQuery, type: 'module' }
const workerOptions = { type: 'module' }

return `export default function WorkerWrapper() {
return new ${workerConstructor}(${JSON.stringify(
Expand Down

0 comments on commit 3d1861d

Please sign in to comment.