forked from jamesplease/react-request
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc
34 lines (34 loc) · 933 Bytes
/
.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
{
"env": {
"build": {
"presets": [["env", { "modules": false }], "stage-3", "react"],
"plugins": ["external-helpers", "transform-class-properties"]
},
"buildProd": {
"presets": [["env", { "modules": false }], "stage-3", "react"],
"plugins": [
"external-helpers",
"transform-class-properties",
[
"transform-react-remove-prop-types",
{ "mode": "remove", "removeImport": true }
]
]
},
"es": {
"presets": [["env", { "modules": false }], "stage-3", "react"],
"plugins": ["transform-class-properties"]
},
"commonjs": {
"plugins": [
["transform-es2015-modules-commonjs", { "loose": true }],
"transform-class-properties"
],
"presets": ["stage-3", "react"]
},
"test": {
"presets": ["env", "stage-3", "react"],
"plugins": ["transform-class-properties"]
}
}
}