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 4ca504b commit 64a5fcf
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/frontend-engineering/tsup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

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

0 comments on commit 64a5fcf

Please sign in to comment.