Skip to content

Commit 544c64e

Browse files
committed
🐳 chore: 修改为按需打包
1 parent 718f230 commit 544c64e

File tree

2 files changed

+34
-10
lines changed

2 files changed

+34
-10
lines changed

.babelrc

+30-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,38 @@
11
{
22
"presets": [
3-
"@babel/preset-env",
4-
"@babel/preset-react",
5-
"mobx"
3+
[
4+
"@babel/preset-env",
5+
{
6+
"useBuiltIns": "usage",
7+
"corejs": 2,
8+
"target": {
9+
"edge": 70,
10+
"chrome": 67
11+
}
12+
}
13+
],
14+
"@babel/preset-react"
615
],
716
"plugins": [
817
"@babel/plugin-proposal-object-rest-spread",
918
"@babel/plugin-transform-runtime",
10-
["@babel/plugin-proposal-class-properties", { "loose": false }],
11-
["@babel/plugin-proposal-private-property-in-object", { "loose": false }],
12-
["@babel/plugin-proposal-private-methods", { "loose": false }]
19+
[
20+
"@babel/plugin-proposal-class-properties",
21+
{
22+
"loose": false
23+
}
24+
],
25+
[
26+
"@babel/plugin-proposal-private-property-in-object",
27+
{
28+
"loose": false
29+
}
30+
],
31+
[
32+
"@babel/plugin-proposal-private-methods",
33+
{
34+
"loose": false
35+
}
36+
]
1337
]
1438
}

tsconfig.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"compilerOptions": {
33
"lib": [
4-
"ES2015"
4+
"ES5"
55
],
6-
"target": "es2015",
7-
"module": "es2015",
6+
"target": "ES5",
7+
"module": "ES2015",
88
"strict": true,
99
"typeRoots": [
1010
"src/types",
11-
"node_modules/@types",
11+
"node_modules/@types"
1212
],
1313
"outDir": "build",
1414
"forceConsistentCasingInFileNames": true,

0 commit comments

Comments
 (0)