Skip to content

Commit 25d0cfa

Browse files
committed
build: Use stage-0 and es2015 for transpiling documentation.js
1 parent 6a8a3f6 commit 25d0cfa

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.babelrc

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
2-
"presets": ["flow"],
3-
"plugins": [
4-
["transform-es2015-modules-commonjs", {
5-
"allowTopLevelThis": true
6-
}]
7-
]
2+
"presets": ["es2015", "stage-0", "flow"],
3+
"plugins": ["syntax-async-functions"]
84
}

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"babel-cli": "^6.24.1",
6262
"babel-eslint": "^7.2.3",
6363
"babel-jest": "^20.0.1",
64+
"babel-plugin-syntax-async-functions": "^6.13.0",
6465
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
6566
"babel-preset-flow": "^6.23.0",
6667
"chdir": "0.0.0",
@@ -79,6 +80,7 @@
7980
"mock-fs": "^4.2.0",
8081
"p-event": "^1.0.0",
8182
"prettier": "^1.0.0",
83+
"regenerator-runtime": "^0.10.5",
8284
"standard-version": "^4.0.0",
8385
"tmp": "^0.0.33"
8486
},

0 commit comments

Comments
 (0)