mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-28 17:35:42 +08:00
Clean up @babel/plugin-transform-regenerator (#5119)
This commit is contained in:
@@ -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 &&
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user