mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-29 18:05:47 +08:00
Eliminate regenerator from preset-react-app plugins (#4630)
Regenerator is already included by preset-env. Fixes #4627
This commit is contained in:
@@ -129,14 +129,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 &&
|
||||
|
||||
Reference in New Issue
Block a user