Skip to content
This repository was archived by the owner on Dec 4, 2022. It is now read-only.

Commit 710d68e

Browse files
author
David First
authored
upgrade to babel-7 (#92)
1 parent 925b699 commit 710d68e

File tree

3 files changed

+6147
-4102
lines changed

3 files changed

+6147
-4102
lines changed

.babelrc

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,39 @@
11
{
2-
"only": "*.js",
2+
"only": ["**/*.js"],
33
"presets": [
4-
["env", {
5-
"targets": {
6-
"node": 4
4+
[
5+
"@babel/preset-env",
6+
{
7+
"targets": {
8+
"node": 4
9+
}
710
}
8-
}]
11+
],
12+
"@babel/preset-flow"
913
],
1014
"plugins": [
11-
["transform-flow-strip-types"],
12-
["babel-plugin-transform-builtin-extend", {
13-
"globals": ["Error", "Array", "Map"]
14-
}],
15-
["transform-runtime", {
16-
"helpers": false,
17-
"polyfill": false,
18-
"regenerator": true
19-
}],
20-
["syntax-async-functions"]
15+
[
16+
"@babel/plugin-transform-flow-strip-types"
17+
],
18+
[
19+
"babel-plugin-transform-builtin-extend",
20+
{
21+
"globals": [
22+
"Error",
23+
"Array",
24+
"Map"
25+
]
26+
}
27+
],
28+
[
29+
"@babel/plugin-transform-runtime",
30+
{
31+
"helpers": false,
32+
"regenerator": true
33+
}
34+
],
35+
[
36+
"syntax-async-functions"
37+
]
2138
]
2239
}

0 commit comments

Comments
 (0)