diff --git a/.babelrc b/.babelrc index d4d923b89..1c8879e4b 100644 --- a/.babelrc +++ b/.babelrc @@ -1,5 +1,6 @@ { "plugins": [ - "babel-plugin-transform-es2015-modules-commonjs" + "babel-plugin-transform-es2015-modules-commonjs", + "babel-plugin-transform-async-generator-functions" ] } diff --git a/compat_config.js b/compat_config.js index 28194da0e..6aa0f0862 100644 --- a/compat_config.js +++ b/compat_config.js @@ -21,6 +21,7 @@ export default { 'plugins': [ // Cf. https://github.com/rollup/rollup-plugin-babel#helpers 'external-helpers', + 'transform-async-generator-functions', ['transform-builtin-extend', { globals: ['Error'] }] diff --git a/package.json b/package.json index 50bbce268..97c521d6c 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "devDependencies": { "acorn-async-iteration": "^0.1.0", "babel-plugin-external-helpers": "^6.22.0", + "babel-plugin-transform-async-generator-functions": "^6.24.1", "babel-plugin-transform-builtin-extend": "^1.1.2", "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", "babel-preset-env": "^1.6.1",