-
Notifications
You must be signed in to change notification settings - Fork 1
/
.babelrc
61 lines (61 loc) · 1.28 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
{
"only": "*.js",
"env": {
"pre-node5": {
"presets": [
["env", {
"targets": {
"node": "4"
},
"modules": false,
"loose": true,
"exclude": [
"transform-regenerator"
]
}],
"flow",
"stage-0"
],
"plugins": [
["array-includes"],
["transform-inline-imports-commonjs"],
["transform-object-rest-spread"],
["transform-runtime", { "polyfill": true, "regenerator": false }],
["transform-builtin-extend", { "globals": ["Error"] }]
]
},
"test": {
"presets": [
["env", {
"targets": {
"node": "current"
},
"modules": false,
"loose": true
}],
"flow",
"stage-0"
],
"plugins": [
["transform-inline-imports-commonjs"]
]
}
},
"presets": [
["env", {
"targets": {
"node": "6"
},
"modules": false,
"loose": true
}],
"flow",
"stage-0"
],
"plugins": [
["babel-plugin-inline-import", { "extensions": [ ".tpl.js" ] }],
["transform-object-rest-spread"],
["transform-inline-imports-commonjs"],
["transform-runtime", { "polyfill": false, "regenerator": true }]
]
}