MICRO PACK Description 微型打包工具 Installation npm install -g @shewulong/micro-pack Use in Scripts 在package.json中添加脚本 { "scripts": { "micro": "micro-pack --entry src/index.js --output dist" } } 运行脚本 npm run micro Use in typescript import { build } '@shewulong/micro-pack'; build({ entry: 'src/index.ts', output: 'dist', });