Skip to content

Commit 3cf721b

Browse files
authored
fix(build): handle missing named type exports (#331)
1 parent 07f27bb commit 3cf721b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/commands/build.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ async function writeTypes(distDir: string, isStub: boolean) {
203203
const schemaImports: string[] = []
204204
const moduleExports: string[] = []
205205

206-
const hasTypeExport = (name: string) => isStub || moduleReExports.find(exp => exp.names.includes(name))
206+
const hasTypeExport = (name: string) => isStub || moduleReExports.find(exp => exp.names?.includes(name))
207207

208208
if (!hasTypeExport('ModuleOptions')) {
209209
schemaImports.push('NuxtModule')

0 commit comments

Comments
 (0)