Skip to content

Commit

Permalink
Eliminate regenerator from preset-react-app plugins
Browse files Browse the repository at this point in the history
Regenerator is already included by preset-env.

Fixes #4627
  • Loading branch information
conartist6 committed Jun 29, 2018
1 parent d366039 commit dced1db
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/babel-preset-react-app/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,6 @@ module.exports = function(api, opts, env) {
removeImport: true,
},
],
// 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 &&
Expand Down

0 comments on commit dced1db

Please sign in to comment.