Skip to content

Commit

Permalink
🐳 chore: 修改为按需打包
Browse files Browse the repository at this point in the history
  • Loading branch information
batu1579 committed Aug 12, 2022
1 parent 718f230 commit 544c64e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
36 changes: 30 additions & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react",
"mobx"
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 2,
"target": {
"edge": 70,
"chrome": 67
}
}
],
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-runtime",
["@babel/plugin-proposal-class-properties", { "loose": false }],
["@babel/plugin-proposal-private-property-in-object", { "loose": false }],
["@babel/plugin-proposal-private-methods", { "loose": false }]
[
"@babel/plugin-proposal-class-properties",
{
"loose": false
}
],
[
"@babel/plugin-proposal-private-property-in-object",
{
"loose": false
}
],
[
"@babel/plugin-proposal-private-methods",
{
"loose": false
}
]
]
}
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"compilerOptions": {
"lib": [
"ES2015"
"ES5"
],
"target": "es2015",
"module": "es2015",
"target": "ES5",
"module": "ES2015",
"strict": true,
"typeRoots": [
"src/types",
"node_modules/@types",
"node_modules/@types"
],
"outDir": "build",
"forceConsistentCasingInFileNames": true,
Expand Down

0 comments on commit 544c64e

Please sign in to comment.