We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dc1c6e commit 4a89613Copy full SHA for 4a89613
1 file changed
nuxt.config.ts
@@ -1,6 +1,6 @@
1
import { nodePolyfills } from "vite-plugin-node-polyfills"
2
import wasm from "vite-plugin-wasm"
3
-// import topLevelAwait from "vite-plugin-top-level-await"
+import topLevelAwait from "vite-plugin-top-level-await"
4
5
import path from "path"
6
@@ -144,7 +144,7 @@ export default defineNuxtConfig({
144
plugins: [wasm(), nodePolyfills()],
145
worker: {
146
format: "es",
147
- plugins: [wasm()],
+ plugins: [wasm(), topLevelAwait()],
148
},
149
150
})
0 commit comments