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