📅  最后修改于: 2022-03-11 15:00:53.749000             🧑  作者: Mango
# add this in tsconfig.json
"emitDeclarationOnly": true,
# use this command
"clean": "rimraf esm",
"compiler": "npm run clean && tsc --pretty && babel --extensions '.ts' src -d esm",
"build": "npm run compiler"