We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6291cbe commit 0c0020fCopy full SHA for 0c0020f
src/commands/build.ts
@@ -271,7 +271,7 @@ ${appShims.length ? `declare module '#app' {\n${appShims.join('\n')}\n}\n` : ''}
271
${schemaShims.length ? `declare module '@nuxt/schema' {\n${schemaShims.join('\n')}\n}\n` : ''}
272
${moduleExports.length ? `\n${moduleExports.join('\n')}` : ''}
273
${isStub ? 'export * from "./module.mjs"' : ''}
274
-${moduleReExports[0] ? `\nexport { ${moduleReExports[0].names.map(n => (n === 'default' ? '' : 'type ') + n).join(', ')} } from './module.mjs'` : ''}
+${moduleReExports.map(e => `\nexport { ${e.names.map(n => (n === 'default' ? '' : 'type ') + n).join(', ')} } from './module.mjs'`)}
275
`.trim().replace(/[\n\r]{3,}/g, '\n\n') + '\n'
276
277
await fsp.writeFile(dtsFile, dtsContents, 'utf8')
0 commit comments