diff --git a/package.json b/package.json index 95d7d3c89..b224cdbdf 100644 --- a/package.json +++ b/package.json @@ -128,6 +128,7 @@ "babel-generator": "^6.21.0", "babel-plugin-external-helpers": "^6.18.0", "babel-plugin-syntax-trailing-function-commas": "^6.20.0", + "babel-plugin-transform-async-to-generator": "6.16.0", "babel-plugin-transform-flow-strip-types": "^6.21.0", "babel-plugin-transform-object-rest-spread": "^6.20.2", "babel-polyfill": "^6.20.0", diff --git a/packager/babelRegisterOnly.js b/packager/babelRegisterOnly.js index a4f96afd3..56fa8c328 100644 --- a/packager/babelRegisterOnly.js +++ b/packager/babelRegisterOnly.js @@ -26,6 +26,7 @@ function config(onlyList) { 'transform-flow-strip-types', 'syntax-trailing-function-commas', 'transform-object-rest-spread', + 'transform-async-to-generator', ], only: _only, retainLines: true,