Skip to content

Commit 7d0c8d8

Browse files
committed
v0fix: fix error with vite plugins
1 parent 4745eec commit 7d0c8d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,10 @@ export default defineNuxtModule<ModuleOptions>({
275275
let foundWasm = false
276276
let foundTopLevelAwait = false
277277
for (const plugin of conf.plugins) {
278-
if ((plugin as any).name === "vite-plugin-wasm") {
278+
if ((plugin as any)?.name === "vite-plugin-wasm") {
279279
foundWasm = true
280280
}
281-
if ((plugin as any).name === "vite-plugin-top-level-await") {
281+
if ((plugin as any)?.name === "vite-plugin-top-level-await") {
282282
foundTopLevelAwait = true
283283
}
284284
}

0 commit comments

Comments
 (0)