Skip to content

Commit

Permalink
feat: add tsup config for prepack
Browse files Browse the repository at this point in the history
  • Loading branch information
Fab1o0107 committed Dec 19, 2023
1 parent cf2d2d7 commit 5c3a158
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tsup-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"entry": ["src/index.ts"],
"platform": "node",
"format": ["esm", "cjs"],
"target": "es2022",
"skipNodeModulesBundle": true,
"clean": true,
"shims": true,
"cjsInterop": true,
"minify": false,
"terserOptions": {
"mangle": false,
"keep_classnames": true,
"keep_fnames": true
},
"splitting": false,
"keepNames": true,
"dts": true,
"sourcemap": true,
"treeshake": false,
"outDir": "dist"
}

0 comments on commit 5c3a158

Please sign in to comment.