Skip to content

Commit 9ebff1a

Browse files
committed
🤖 Fix worker.plugins syntax for Vite 7 compatibility
Change worker.plugins from function to array to match main branch. The function syntax was breaking worker initialization in E2E tests.
1 parent b24d850 commit 9ebff1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vite.config.mts

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)