-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.babelrc
More file actions
30 lines (30 loc) · 772 Bytes
/
.babelrc
File metadata and controls
30 lines (30 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{//具体的编译的类型,
//compact: false,//表示不压缩
"presets": [
"es2015",
"stage-1",
"react"
],
//按需加载antd组件,否则为压缩文件将有4M大小
"plugins": [
[
"import", {
"libraryName": "antd",
"libraryDirectory": "lib",
"style": true
}
]
],
"env": {
"node": {
"plugins": [
[
"babel-plugin-transform-require-ignore",
{
"extensions": [".less", ".sass"]
}
]
]
}
}
}