File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -671,15 +671,15 @@ export function dtsPlugin(options: PluginOptions = {}): import('vite').Plugin {
671
671
fromPath = fromPath . replace ( dtsRE , '' )
672
672
fromPath = fullRelativeRE . test ( fromPath ) ? fromPath : `./${ fromPath } `
673
673
674
- let content = ''
674
+ let content = 'export {}\n '
675
675
676
676
if ( emittedFiles . has ( sourceEntry ) ) {
677
677
if ( hasNormalExport ( emittedFiles . get ( sourceEntry ) ! ) ) {
678
- content + = `export * from '${ fromPath } '\n`
678
+ content = `export * from '${ fromPath } '\n${ content } `
679
679
}
680
680
681
681
if ( hasExportDefault ( emittedFiles . get ( sourceEntry ) ! ) ) {
682
- content += `import ${ libName } from '${ fromPath } '\nexport default ${ libName } \n`
682
+ content += `import ${ libName } from '${ fromPath } '\nexport default ${ libName } \n${ content } `
683
683
}
684
684
}
685
685
You can’t perform that action at this time.
0 commit comments