mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[Fizz] Stop publishing external-runtime to stable channel (#28796)
The external runtime is not vetted for stability yet. We should stop publishing it with our stable build
This commit is contained in:
@@ -110,7 +110,7 @@ export const enableUseEffectEventHook = __EXPERIMENTAL__;
|
||||
// Test in www before enabling in open source.
|
||||
// Enables DOM-server to stream its instruction set as data-attributes
|
||||
// (handled with an MutationObserver) instead of inline-scripts
|
||||
export const enableFizzExternalRuntime = true;
|
||||
export const enableFizzExternalRuntime = __EXPERIMENTAL__;
|
||||
|
||||
export const alwaysThrottleRetries = true;
|
||||
|
||||
|
||||
@@ -328,7 +328,7 @@ const bundles = [
|
||||
|
||||
/******* React DOM Fizz Server External Runtime *******/
|
||||
{
|
||||
bundleTypes: [BROWSER_SCRIPT],
|
||||
bundleTypes: __EXPERIMENTAL__ ? [BROWSER_SCRIPT] : [],
|
||||
moduleType: RENDERER,
|
||||
entry: 'react-dom/unstable_server-external-runtime',
|
||||
outputPath: 'unstable_server-external-runtime.js',
|
||||
|
||||
@@ -235,7 +235,14 @@ function filterOutEntrypoints(name) {
|
||||
// Let's remove it.
|
||||
files.splice(i, 1);
|
||||
i--;
|
||||
unlinkSync(`build/node_modules/${name}/${filename}`);
|
||||
try {
|
||||
unlinkSync(`build/node_modules/${name}/${filename}`);
|
||||
} catch (err) {
|
||||
// If the file doesn't exist we can just move on. Otherwise throw the halt the build
|
||||
if (err.code !== 'ENOENT') {
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
changed = true;
|
||||
// Remove it from the exports field too if it exists.
|
||||
if (exportsJSON) {
|
||||
|
||||
Reference in New Issue
Block a user