-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc
40 lines (40 loc) · 873 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
35
36
37
38
39
40
{
"presets": [
["es2015", {"modules": false}],
["env", {
"targets": {
"browsers": "last 2 versions"
},
"loose": true,
"modules": false
}],
"react"
],
"plugins": [
"react-hot-loader/babel",
"syntax-dynamic-import",
"dynamic-import-webpack",
"transform-class-properties",
"transform-decorators-legacy",
"styled-components",
"dynamic-import-node",
["import-inspector", {
"serverSideRequirePath": true,
"webpackRequireWeakId": true
}]
],
"env": {
"development": {
"plugins": ["transform-es2015-modules-commonjs"]
},
"production": {
"plugins": ["transform-es2015-modules-commonjs"]
},
"server": {
"plugins": ["transform-es2015-modules-commonjs"]
},
"test": {
"plugins": ["transform-es2015-modules-commonjs"]
}
}
}