Skip to content

Commit 4a89613

Browse files
committed
test top level await
1 parent 8dc1c6e commit 4a89613

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nuxt.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { nodePolyfills } from "vite-plugin-node-polyfills"
22
import wasm from "vite-plugin-wasm"
3-
// import topLevelAwait from "vite-plugin-top-level-await"
3+
import topLevelAwait from "vite-plugin-top-level-await"
44

55
import path from "path"
66

@@ -144,7 +144,7 @@ export default defineNuxtConfig({
144144
plugins: [wasm(), nodePolyfills()],
145145
worker: {
146146
format: "es",
147-
plugins: [wasm()],
147+
plugins: [wasm(), topLevelAwait()],
148148
},
149149
},
150150
})

0 commit comments

Comments
 (0)