Skip to content

Commit 49178e0

Browse files
修改babel文件
1 parent 138a199 commit 49178e0

File tree

6 files changed

+314
-16
lines changed

6 files changed

+314
-16
lines changed

.babelrc

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,37 @@
1-
{
2-
"presets": [
3-
"es2015",
4-
"stage-2",
5-
"react",
6-
"mobx"
7-
],
8-
"plugins": [
9-
"react-hot-loader/babel",
10-
["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }],
11-
"transform-decorators-legacy"
12-
]
13-
}
1+
{
2+
"presets": [
3+
"es2015",
4+
"stage-2",
5+
"react",
6+
"mobx"
7+
],
8+
"plugins": [
9+
"react-hot-loader/babel",
10+
["import",
11+
{
12+
"libraryName": "antd",
13+
"libraryDirectory": "es",
14+
"style": true
15+
}
16+
],
17+
"transform-decorators-legacy",
18+
"minify-constant-folding",
19+
["minify-dead-code-elimination",
20+
{
21+
"optimizeRawSize": true
22+
}
23+
],
24+
"minify-flip-comparisons",
25+
"minify-guarded-expressions",
26+
"minify-infinity",
27+
["minify-mangle-names",
28+
{ "exclude":
29+
{
30+
"foo": true,
31+
"bar": true
32+
}
33+
}
34+
]
35+
36+
]
37+
}

package-lock.json

Lines changed: 249 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)