Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fyhhub authored Nov 26, 2023
1 parent d646fb4 commit 4ca504b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/frontend-engineering/tsup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# tsup

## 快速创建一个node打包配置
```js
{
"tsup": {
"entry": "./src/index.ts",
"target": "node14",
"outDir": "dist",
"format": ["cjs", "esm"],
"dts": true,
"clean": true,
"platform": "node",
"cjsInterop": true
},
}
```

0 comments on commit 4ca504b

Please sign in to comment.