-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc
41 lines (41 loc) · 1.09 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
{
"plugins": ["transform-object-rest-spread"],
// transform-object-rest-spread because babel-preset-env won't transpile this for us, but not supported by node 4.3
"env": {
"production": {
"plugins": ["transform-es2015-template-literals", "transform-es2015-shorthand-properties"],
// transform-es2015-template-literals because uglify-harmony branch does not support these yet
// https://github.com/mishoo/UglifyJS2/issues/448
"presets": [
[ "env", {
"targets": {
"node": 4.3
},
"debug": false,
"modules": false // we'll leave this to webpack so we get the benefit of tree shaking
}]
]
},
"development": {
"presets": [
[ "env", {
"targets": {
"node": 4.3
},
"debug": true,
"modules": false
}]
]
},
"test": {
"presets": [
[ "env", {
"targets": {
"node": 4.3
},
"modules": "commonjs" // we don't go through webpack for our tests
}]
]
}
}
}