Skip to content

Commit

Permalink
fix: fix CommonJS build dependency problem
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLLLLH committed Feb 22, 2022
1 parent 71378b5 commit b90ba0b
Show file tree
Hide file tree
Showing 4 changed files with 6,699 additions and 6,434 deletions.
2 changes: 0 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ module.exports = api => {
'@babel/transform-runtime',
{
regenerator: true,
// 测试环境使用commonjs
useESModules: !isTest,
},
],
[`@babel/plugin-proposal-decorators`, { legacy: true }],
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
"dist",
"src"
],
"engines": {
"node": ">=10"
},
"scripts": {
"docs": "BABEL_ENV=\"script\" babel-node --extensions \".ts\" ./scripts/syncDoc.ts",
"clean": "rm -rf ./dist",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"importHelpers": true,
"noEmitHelpers": true,
"noEmit": true,
"experimentalDecorators": true
"experimentalDecorators": true,
"skipLibCheck": true
},
"include": ["src"],
"exclude": ["node_modules", "dist", "example"]
Expand Down
Loading

0 comments on commit b90ba0b

Please sign in to comment.