We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import type
1 parent d29337c commit 190bff4Copy full SHA for 190bff4
src/commands/build.ts
@@ -237,7 +237,7 @@ async function writeTypes(distDir: string) {
237
const dtsContents = `
238
${schemaImports.length ? `import type { ${schemaImports.join(', ')} } from '@nuxt/schema'` : ''}
239
240
-import type { ${moduleImports.join(', ')} } from './module'
+${moduleImports.length ? `import type { ${moduleImports.join(', ')} } from './module'` : ''}
241
242
${appShims.length ? `declare module '#app' {\n${appShims.join('\n')}\n}\n` : ''}
243
${schemaShims.length ? `declare module '@nuxt/schema' {\n${schemaShims.join('\n')}\n}\n` : ''}
0 commit comments