GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • packages/shared
    • ReactFeatureFlags.js
  • scripts/rollup
    • bundles.js
    • packaging.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/shared/ReactFeatureFlags.js‎

Copy file name to clipboardExpand all lines: packages/shared/ReactFeatureFlags.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const enableUseEffectEventHook = __EXPERIMENTAL__;
110110
// Test in www before enabling in open source.
111111
// Enables DOM-server to stream its instruction set as data-attributes
112112
// (handled with an MutationObserver) instead of inline-scripts
113-
export const enableFizzExternalRuntime = true;
113+
export const enableFizzExternalRuntime = __EXPERIMENTAL__;
114114

115115
export const alwaysThrottleRetries = true;
116116

Collapse file

‎scripts/rollup/bundles.js‎

Copy file name to clipboardExpand all lines: scripts/rollup/bundles.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ const bundles = [
328328

329329
/******* React DOM Fizz Server External Runtime *******/
330330
{
331-
bundleTypes: [BROWSER_SCRIPT],
331+
bundleTypes: __EXPERIMENTAL__ ? [BROWSER_SCRIPT] : [],
332332
moduleType: RENDERER,
333333
entry: 'react-dom/unstable_server-external-runtime',
334334
outputPath: 'unstable_server-external-runtime.js',
Collapse file

‎scripts/rollup/packaging.js‎

Copy file name to clipboardExpand all lines: scripts/rollup/packaging.js
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,14 @@ function filterOutEntrypoints(name) {
235235
// Let's remove it.
236236
files.splice(i, 1);
237237
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+
}
239246
changed = true;
240247
// Remove it from the exports field too if it exists.
241248
if (exportsJSON) {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.