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

Commit 7a14d21

Browse files
fix(core): generate .d.ts files for .mjs exports (#218)
1 parent 12c2719 commit 7a14d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/build/rollup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export function getRollupConfig(
232232
defu({}, options as RollupOptions, {
233233
input: pkg.resolveEntrypoint(outfile),
234234
output: {
235-
file: resolvePath(outfile.replace(/(\.es)?\.js$/, '.d.ts')),
235+
file: resolvePath(outfile.replace(/(\.es)?\.m?js$/, '.d.ts')),
236236
format: 'es',
237237
exports: 'auto',
238238
} as OutputOptions,

0 commit comments

Comments
 (0)