Clean up @babel/plugin-transform-regenerator (#5119)

This commit is contained in:
XiaoYan Li
2018-09-27 19:49:00 +08:00
committed by Joe Haddad
parent 908595ad26
commit e11334f7d8
2 changed files with 0 additions and 9 deletions

View File

@@ -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 &&

View File

@@ -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",