We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4745eec commit 7d0c8d8Copy full SHA for 7d0c8d8
1 file changed
src/module.ts
@@ -275,10 +275,10 @@ export default defineNuxtModule<ModuleOptions>({
275
let foundWasm = false
276
let foundTopLevelAwait = false
277
for (const plugin of conf.plugins) {
278
- if ((plugin as any).name === "vite-plugin-wasm") {
+ if ((plugin as any)?.name === "vite-plugin-wasm") {
279
foundWasm = true
280
}
281
- if ((plugin as any).name === "vite-plugin-top-level-await") {
+ if ((plugin as any)?.name === "vite-plugin-top-level-await") {
282
foundTopLevelAwait = true
283
284
0 commit comments