GeezerVison is showing github.com — [Fizz] Stop publishing external-runtime to stable channel (#28796) · react/react@bf40b02
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/shared/ReactFeatureFlags.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -110,7 +110,7 @@ export const enableUseEffectEventHook = __EXPERIMENTAL__; |
110 | 110 | // Test in www before enabling in open source. |
111 | 111 | // Enables DOM-server to stream its instruction set as data-attributes |
112 | 112 | // (handled with an MutationObserver) instead of inline-scripts |
113 | | -export const enableFizzExternalRuntime = true; |
| 113 | +export const enableFizzExternalRuntime = __EXPERIMENTAL__; |
114 | 114 |
|
115 | 115 | export const alwaysThrottleRetries = true; |
116 | 116 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: scripts/rollup/bundles.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -328,7 +328,7 @@ const bundles = [ |
328 | 328 |
|
329 | 329 | /******* React DOM Fizz Server External Runtime *******/ |
330 | 330 | { |
331 | | - bundleTypes: [BROWSER_SCRIPT], |
| 331 | + bundleTypes: __EXPERIMENTAL__ ? [BROWSER_SCRIPT] : [], |
332 | 332 | moduleType: RENDERER, |
333 | 333 | entry: 'react-dom/unstable_server-external-runtime', |
334 | 334 | outputPath: 'unstable_server-external-runtime.js', |
|
Collapse file
Copy file name to clipboardExpand all lines: scripts/rollup/packaging.js +8-1Lines changed: 8 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -235,7 +235,14 @@ function filterOutEntrypoints(name) { |
235 | 235 | // Let's remove it. |
236 | 236 | files.splice(i, 1); |
237 | 237 | i--; |
238 | | - unlinkSync(`build/node_modules/${name}/${filename}`); |
| 238 | + try { |
| 239 | + unlinkSync(`build/node_modules/${name}/${filename}`); |
| 240 | + } catch (err) { |
| 241 | + // If the file doesn't exist we can just move on. Otherwise throw the halt the build |
| 242 | + if (err.code !== 'ENOENT') { |
| 243 | + throw err; |
| 244 | + } |
| 245 | + } |
239 | 246 | changed = true; |
240 | 247 | // Remove it from the exports field too if it exists. |
241 | 248 | if (exportsJSON) { |
|