-
Notifications
You must be signed in to change notification settings - Fork 93
/
.babelrc
38 lines (37 loc) · 1.03 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
{
"presets": ["module:metro-react-native-babel-preset"],
"sourceMaps": true,
"plugins": [
[
"module-resolver",
{
"root": ["./"],
"extensions": [".js"],
"alias": {
"actions": "./src/app/actions",
"constants": "./src/app/constants",
"reducers": "./src/app/reducers",
"selectors": "./src/app/selectors",
"store": "./src/app/store",
"assets": "./src/commons/assets",
"styles": "./src/commons/styles",
"utils": "./src/commons/utils",
"components": "./src/components",
"containers": "./src/containers",
"routers": "./src/routers"
},
"cwd": "babelrc"
}
],
["@babel/plugin-proposal-decorators", { "legacy": true }],
["@babel/transform-runtime", {
"helpers": true,
"regenerator": false
}],
],
"env": {
"production": {
"plugins": ["transform-remove-console"]
}
}
}