diff --git a/.babelrc b/.babelrc index 7bf9aad..dd38cc3 100644 --- a/.babelrc +++ b/.babelrc @@ -5,6 +5,7 @@ ], "plugins": [ "transform-flow-strip-types", - "transform-decorators-legacy" + "transform-decorators-legacy", + "transform-async-to-generator" ] } diff --git a/package.json b/package.json index cfba072..dc05c6a 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "babel-core": "^6.23.1", "babel-eslint": "^7.1.1", "babel-jest": "^19.0.0", + "babel-plugin-transform-async-to-generator": "^6.22.0", "babel-plugin-transform-decorators-legacy": "^1.3.4", "babel-plugin-transform-flow-strip-types": "^6.22.0", "babel-polyfill": "^6.23.0",