-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc
50 lines (50 loc) · 1.02 KB
/
.babelrc
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": "58",
"ie": "10",
"esmodules": false
}
}
],
["react-app", {
"flow": false,
"typescript": true
}],
"@babel/preset-react",
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-transform-runtime",
["@babel/plugin-proposal-decorators", {
"legacy": true
}],
["@babel/plugin-proposal-class-properties", {
"loose": true
}],
[
"import",
{
"libraryName": "antd",
"libraryDirectory": "es",
"style": "css"
}
],
"lodash",
["module-resolver", {
"root": ["."],
"alias": {
"api": ["./src/webapi"],
"@/**": ["./src/**"],
"@/redux": "./src/redux",
"@/pages": "./src/pages",
"kit": "./src/web_modules/kit",
"service": "./src/web_modules/service",
"ui": "./src/web_modules/ui"
}
}], "@babel/plugin-syntax-dynamic-import"
]
}