forked from wp-pwa/wp-pwa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc
70 lines (70 loc) · 1.9 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"env": {
"test": {
"presets": [["env", { "targets": { "node": "current" } }], "react"],
"plugins": [
"syntax-dynamic-import",
"transform-object-rest-spread",
"transform-class-properties",
["universal-import", { "disableWarnings": true }]
]
},
"devClient": {
"presets": [
[
"env",
{
"targets": {
"browsers": ["android >= 5", "ios_saf > 9", "and_chr >= 40"]
},
"useBuiltIns": "usage"
}
],
"react"
],
"plugins": [
["styled-components", { "ssr": true }],
"transform-inline-environment-variables",
["lodash", { "id": ["lodash", "recompose"] }],
"syntax-dynamic-import",
"transform-object-rest-spread",
"transform-class-properties",
["universal-import", { "disableWarnings": true }],
"react-hot-loader/babel"
]
},
"prodClient": {
"presets": [
[
"env",
{
"targets": {
"browsers": ["android >= 5", "ios_saf > 9", "and_chr >= 40"]
},
"useBuiltIns": "usage"
}
],
"react"
],
"plugins": [
["styled-components", { "ssr": true }],
"transform-inline-environment-variables",
["lodash", { "id": ["lodash", "recompose"] }],
"syntax-dynamic-import",
"transform-object-rest-spread",
"transform-class-properties",
["universal-import", { "disableWarnings": true }]
]
},
"server": {
"presets": [["env", { "targets": { "node": "current" } }], "react"],
"plugins": [
["styled-components", { "ssr": true }],
"syntax-dynamic-import",
"transform-object-rest-spread",
"transform-class-properties",
["universal-import", { "disableWarnings": true }]
]
}
}
}