Skip to content

Commit

Permalink
fix(core): generate es exports dts files correctly (#212)
Browse files Browse the repository at this point in the history
Co-authored-by: lihbr <lihbr@users.noreply.github.com>
  • Loading branch information
lihbr and lihbr authored Jun 15, 2021
1 parent 3a7479d commit b0f29c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/build/rollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export function getRollupConfig(
defu({}, options as RollupOptions, {
input: pkg.resolveEntrypoint(outfile),
output: {
file: resolvePath(outfile.replace(/\.js$/, '.d.ts')),
file: resolvePath(outfile.replace(/(\.es)?\.js$/, '.d.ts')),
format: 'es',
exports: 'auto',
} as OutputOptions,
Expand Down

0 comments on commit b0f29c6

Please sign in to comment.