Skip to content

Commit

Permalink
fix: web worker accessing undefined document
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonsea0927 committed May 18, 2023
1 parent fbbadb8 commit a8c53a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ export default defineConfig({
build: {
outDir: 'build',
},
worker: {
// https://github.com/vitejs/vite/pull/12629
format: 'es',
},
})

0 comments on commit a8c53a7

Please sign in to comment.