diff --git a/examples/async/.babelrc b/examples/async/.babelrc index 0603968ddfe4..00baf60065c3 100644 --- a/examples/async/.babelrc +++ b/examples/async/.babelrc @@ -1,4 +1,4 @@ { "presets": ["es2015"], - "plugins": ["async-to-promises"] + "plugins": ["transform-async-to-generator"] } diff --git a/examples/async/package.json b/examples/async/package.json index 2fdb6fda6b93..f48da79d1002 100644 --- a/examples/async/package.json +++ b/examples/async/package.json @@ -1,7 +1,8 @@ { "devDependencies": { "babel-jest": "*", - "babel-plugin-async-to-promises": "^1.0.5", + "babel-plugin-transform-async-to-generator": "*", + "babel-polyfill": "*", "babel-preset-es2015": "*", "jest": "*" },