forked from yarnpkg/yarn
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.babelrc
59 lines (59 loc) · 1.2 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
{
"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-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-inline-imports-commonjs"],
["transform-runtime", { "polyfill": false, "regenerator": true }]
]
}