Skip to content

Commit 52f2946

Browse files
conartist6Timer
authored andcommitted
Eliminate regenerator from preset-react-app plugins (#4630)
Regenerator is already included by preset-env. Fixes #4627
1 parent 409e571 commit 52f2946

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/babel-preset-react-app/create.js

-8
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,6 @@ module.exports = function(api, opts, env) {
129129
removeImport: true,
130130
},
131131
],
132-
// function* () { yield 42; yield 43; }
133-
!isEnvTest && [
134-
require('@babel/plugin-transform-regenerator').default,
135-
{
136-
// Async functions are converted to generators by @babel/preset-env
137-
async: false,
138-
},
139-
],
140132
// Adds syntax support for import()
141133
require('@babel/plugin-syntax-dynamic-import').default,
142134
isEnvTest &&

0 commit comments

Comments
 (0)