We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c0020f commit 7154a89Copy full SHA for 7154a89
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.map(e => `\nexport { ${e.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 '${e.specifier || './module.mjs'}'`).join('\n')}
275
`.trim().replace(/[\n\r]{3,}/g, '\n\n') + '\n'
276
277
await fsp.writeFile(dtsFile, dtsContents, 'utf8')
0 commit comments