Remove regenerator from noop (#19024)

This isn't used and it wouldn't work anyway.
This commit is contained in:
Sebastian Markbåge
2020-05-27 16:14:46 -07:00
committed by GitHub
parent c66ac10f4d
commit 0219925e02
2 changed files with 0 additions and 29 deletions

View File

@@ -12,7 +12,6 @@
"license": "MIT",
"dependencies": {
"object-assign": "^4.1.1",
"regenerator-runtime": "^0.11.0",
"react-reconciler": "*",
"react-client": "*",
"react-server": "*"

View File

@@ -72,16 +72,6 @@ ${license}
'use strict';
${
globalName === 'ReactNoopRenderer' ||
globalName === 'ReactNoopRendererPersistent'
? // React Noop needs regenerator runtime because it uses
// generators but GCC doesn't handle them in the output.
// So we use Babel for them.
`const regeneratorRuntime = require("regenerator-runtime");`
: ``
}
if (process.env.NODE_ENV !== "production") {
(function() {
${source}
@@ -96,15 +86,6 @@ ${source}
*
${license}
*/
${
globalName === 'ReactNoopRenderer' ||
globalName === 'ReactNoopRendererPersistent'
? // React Noop needs regenerator runtime because it uses
// generators but GCC doesn't handle them in the output.
// So we use Babel for them.
`const regeneratorRuntime = require("regenerator-runtime");`
: ``
}
${source}`;
},
@@ -115,15 +96,6 @@ ${source}`;
*
${license}
*/
${
globalName === 'ReactNoopRenderer' ||
globalName === 'ReactNoopRendererPersistent'
? // React Noop needs regenerator runtime because it uses
// generators but GCC doesn't handle them in the output.
// So we use Babel for them.
`const regeneratorRuntime = require("regenerator-runtime");`
: ``
}
${source}`;
},