diff --git a/src/frontend-engineering/tsup.md b/src/frontend-engineering/tsup.md new file mode 100644 index 0000000000..ada4de730f --- /dev/null +++ b/src/frontend-engineering/tsup.md @@ -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 + }, +} +``` \ No newline at end of file