diff --git a/.babelrc b/.babelrc index 1fb20f9b5c..f905c25de6 100644 --- a/.babelrc +++ b/.babelrc @@ -18,6 +18,7 @@ ], "plugins": [ "transform-object-rest-spread", - "transform-react-jsx" + "transform-react-jsx", + "transform-async-to-promises" ] } diff --git a/package.json b/package.json index 7e20b1877f..1bc7a106b0 100644 --- a/package.json +++ b/package.json @@ -113,6 +113,7 @@ "babel-core": "6.26.3", "babel-loader": "7.1.5", "babel-plugin-istanbul": "5.0.1", + "babel-plugin-transform-async-to-promises": "^0.8.14", "babel-plugin-transform-object-rest-spread": "^6.23.0", "babel-plugin-transform-react-jsx": "^6.24.1", "babel-preset-env": "^1.6.1",