Skip to content

Commit f101302

Browse files
committed
chore: tsup config file confugured
1 parent 3af485a commit f101302

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tsup.config.ts

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

4-
export default defineConfig((options) => ({
5-
export default defineConfig((options) => ({
4+
export default defineConfig({
65
entry: ['src/index.tsx'],
76
format: ['esm', 'cjs'],
8-
outExtension: ext => ({
9-
esm: '.mjs',
10-
cjs: '.cjs',
11-
}),
127
dts: true,
13-
watch: options.watch,
148
clean: true,
15-
}));
169
banner: {
1710
js: `/**
1811
* ${pkg.name} v${pkg.version}
1912
* Author: ${pkg.author}
2013
*/
21-
`,
14+
`,
2215
},
23-
}));
16+
});

0 commit comments

Comments
 (0)