Remove regenerator from noop (#19024)
This isn't used and it wouldn't work anyway.
Sebastian Markbåge committed
May 27, 2020 at 16:14 UTC
0219925e022a43e141be05699500d8bca8d94d92
2 files changed
-29
packages/react-noop-renderer/package.json
-1
@@ -12,7 +12,6 @@
12
"license": "MIT",
13
"dependencies": {
14
"object-assign": "^4.1.1",
15
- "regenerator-runtime": "^0.11.0",
15
"react-reconciler": "*",
16
"react-client": "*",
17
"react-server": "*"
scripts/rollup/wrappers.js
-28
@@ -72,16 +72,6 @@ ${license}
72
73
'use strict';
74
75
-${
76
- globalName === 'ReactNoopRenderer' ||
77
- globalName === 'ReactNoopRendererPersistent'
78
- ? // React Noop needs regenerator runtime because it uses
79
- // generators but GCC doesn't handle them in the output.
80
- // So we use Babel for them.
81
- `const regeneratorRuntime = require("regenerator-runtime");`
82
- : ``
83
-}
84
-
75
if (process.env.NODE_ENV !== "production") {
76
(function() {
77
${source}
@@ -96,15 +86,6 @@ ${source}
86
*
87
${license}
88
*/
99
-${
100
- globalName === 'ReactNoopRenderer' ||
101
- globalName === 'ReactNoopRendererPersistent'
102
- ? // React Noop needs regenerator runtime because it uses
103
- // generators but GCC doesn't handle them in the output.
104
- // So we use Babel for them.
105
- `const regeneratorRuntime = require("regenerator-runtime");`
106
- : ``
107
-}
89
${source}`;
90
},
91
@@ -115,15 +96,6 @@ ${source}`;
96
*
97
${license}
98
*/
118
-${
119
- globalName === 'ReactNoopRenderer' ||
120
- globalName === 'ReactNoopRendererPersistent'
121
- ? // React Noop needs regenerator runtime because it uses
122
- // generators but GCC doesn't handle them in the output.
123
- // So we use Babel for them.
124
- `const regeneratorRuntime = require("regenerator-runtime");`
125
- : ``
126
-}
99
${source}`;
100
},
101