mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Remove regenerator from noop (#19024)
This isn't used and it wouldn't work anyway.
This commit is contained in:
committed by
GitHub
parent
c66ac10f4d
commit
0219925e02
@@ -12,7 +12,6 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"object-assign": "^4.1.1",
|
||||
"regenerator-runtime": "^0.11.0",
|
||||
"react-reconciler": "*",
|
||||
"react-client": "*",
|
||||
"react-server": "*"
|
||||
|
||||
@@ -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}`;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user