Skip to content

Commit 6a06258

Browse files
committed
🤖 Fix worker plugins - use array syntax to match main
The function syntax plugins: () => [...] prevents workers from initializing properly. Main branch uses plugins: [...] which works correctly.
1 parent 99b278e commit 6a06258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default defineConfig(({ mode }) => ({
7878
},
7979
worker: {
8080
format: "es",
81-
plugins: () => [topLevelAwait()],
81+
plugins: [topLevelAwait()],
8282
},
8383
server: {
8484
host: "127.0.0.1",

0 commit comments

Comments
 (0)