Skip to content

Commit 99fc6ba

Browse files
Update tsup.config.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 15f6f91 commit 99fc6ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tsup.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
import { defineConfig } from 'tsup';
22
import pkg from './package.json';
33

4+
export default defineConfig((options) => ({
45
export default defineConfig((options) => ({
56
entry: ['src/index.tsx'],
67
format: ['esm', 'cjs'],
8+
outExtension: ext => ({
9+
esm: '.mjs',
10+
cjs: '.cjs',
11+
}),
712
dts: true,
813
watch: options.watch,
914
clean: true,
15+
}));
1016
banner: {
1117
js: `/**
1218
* ${pkg.name} v${pkg.version}

0 commit comments

Comments
 (0)