Skip to content

Commit 8ecd1b5

Browse files
committed
fix: export type only for cjs dts re-export
1 parent 77124d2 commit 8ecd1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/rolldown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export function CjsDtsReexportPlugin(): Plugin {
356356
const dMtsBasename = path.basename(
357357
chunk.fileName.replace(RE_JS, '.d.mts'),
358358
)
359-
const content = `export * from './${dMtsBasename}'\n`
359+
const content = `export type * from './${dMtsBasename}'\n`
360360

361361
this.emitFile({
362362
type: 'prebuilt-chunk',

0 commit comments

Comments
 (0)