Skip to content

Commit 64bf9bb

Browse files
committed
Use typescript tsup config
1 parent 6a325a5 commit 64bf9bb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const { defineConfig } = require('tsup');
1+
import type { Options } from 'tsup';
22

3-
module.exports = defineConfig({
3+
export const tsup: Options = {
44
entry: ['src/index.ts'],
55
format: ['esm', 'cjs'],
66
external: ['react'],
@@ -11,4 +11,4 @@ module.exports = defineConfig({
1111
dts: true,
1212
minify: true,
1313
target: 'es2017',
14-
});
14+
};

0 commit comments

Comments
 (0)