Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Commit b0f29c6

Browse files
authored
fix(core): generate es exports dts files correctly (#212)
Co-authored-by: lihbr <[email protected]>
1 parent 3a7479d commit b0f29c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/build/rollup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export function getRollupConfig(
218218
defu({}, options as RollupOptions, {
219219
input: pkg.resolveEntrypoint(outfile),
220220
output: {
221-
file: resolvePath(outfile.replace(/\.js$/, '.d.ts')),
221+
file: resolvePath(outfile.replace(/(\.es)?\.js$/, '.d.ts')),
222222
format: 'es',
223223
exports: 'auto',
224224
} as OutputOptions,

0 commit comments

Comments
 (0)