Skip to content

Commit c2231fe

Browse files
committed
Use async-generator-functions transform in Babel
1 parent eb2a70e commit c2231fe

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"plugins": [
3-
"babel-plugin-transform-es2015-modules-commonjs"
3+
"babel-plugin-transform-es2015-modules-commonjs",
4+
"babel-plugin-transform-async-generator-functions"
45
]
56
}

compat_config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export default {
2121
'plugins': [
2222
// Cf. https://github.com/rollup/rollup-plugin-babel#helpers
2323
'external-helpers',
24+
'transform-async-generator-functions',
2425
['transform-builtin-extend', {
2526
globals: ['Error']
2627
}]

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"devDependencies": {
99
"acorn-async-iteration": "^0.1.0",
1010
"babel-plugin-external-helpers": "^6.22.0",
11+
"babel-plugin-transform-async-generator-functions": "^6.24.1",
1112
"babel-plugin-transform-builtin-extend": "^1.1.2",
1213
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
1314
"babel-preset-env": "^1.6.1",

0 commit comments

Comments
 (0)