Skip to content

Commit 0519151

Browse files
committed
support esm module and tsup-config updated
1 parent 6efe881 commit 0519151

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"version": "1.0.0",
44
"description": "",
55
"main": "dist/index.js",
6+
"module": "dist/index.mjs",
7+
"types": "dist/index.d.ts",
68
"scripts": {
79
"build": "tsup"
810
},

tsup.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export default defineConfig({
66
dts: true,
77
target: 'node16',
88
splitting: false,
9+
minify:true,
910
treeshake:true,
1011
clean: true,
12+
bundle:true,
1113
});

0 commit comments

Comments
 (0)