diff --git a/packages/babel-preset-react-app/dependencies.js b/packages/babel-preset-react-app/dependencies.js index a3c9501f11f..6872488e80a 100644 --- a/packages/babel-preset-react-app/dependencies.js +++ b/packages/babel-preset-react-app/dependencies.js @@ -97,14 +97,6 @@ module.exports = function(api, opts) { useESModules: isEnvDevelopment || isEnvProduction, }, ], - // function* () { yield 42; yield 43; } - !isEnvTest && [ - require('@babel/plugin-transform-regenerator').default, - { - // Async functions are converted to generators by @babel/preset-env - async: false, - }, - ], // Adds syntax support for import() require('@babel/plugin-syntax-dynamic-import').default, isEnvTest && diff --git a/packages/babel-preset-react-app/package.json b/packages/babel-preset-react-app/package.json index a972f9c29f4..8a75a537586 100644 --- a/packages/babel-preset-react-app/package.json +++ b/packages/babel-preset-react-app/package.json @@ -26,7 +26,6 @@ "@babel/plugin-transform-destructuring": "7.0.0", "@babel/plugin-transform-react-constant-elements": "7.0.0", "@babel/plugin-transform-react-display-name": "7.0.0", - "@babel/plugin-transform-regenerator": "7.0.0", "@babel/plugin-transform-runtime": "7.1.0", "@babel/preset-env": "7.1.0", "@babel/preset-flow": "7.0.0",