Updating forking implementation to match against more general fork implementations (#27205)

Search for more generic fork files if an exact match does not exist. If
`forks/MyFile.dom.js` exists but `forks/MyFile.dom-node.js` does not
then use it when trying to resolve forks for the `"dom-node"` renderer
in flow, tests, and build

consolidate certain fork files that were identical and make semantic
sense to be generalized
add `dom-browser-esm` bundle and use it for
`react-server-dom-esm/client.browser` build

DiffTrain build for commit https://github.com/facebook/react/commit/5623f2acf93d762b0b67dab76668b564a6f3b21e.
This commit is contained in:
gnoff
2023-08-17 22:22:20 +00:00
parent dec374c414
commit cd657f6ef6
7 changed files with 9 additions and 9 deletions
@@ -23966,7 +23966,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-canary-e50531692-20230817";
var ReactVersion = "18.3.0-canary-5623f2acf-20230817";
// Might add PROFILE later.
@@ -8615,7 +8615,7 @@ var devToolsConfig$jscomp$inline_1029 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-e50531692-20230817",
version: "18.3.0-canary-5623f2acf-20230817",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1228 = {
@@ -8646,7 +8646,7 @@ var internals$jscomp$inline_1228 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-e50531692-20230817"
reconcilerVersion: "18.3.0-canary-5623f2acf-20230817"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1229 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9041,7 +9041,7 @@ var devToolsConfig$jscomp$inline_1071 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-e50531692-20230817",
version: "18.3.0-canary-5623f2acf-20230817",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1269 = {
@@ -9072,7 +9072,7 @@ var internals$jscomp$inline_1269 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-e50531692-20230817"
reconcilerVersion: "18.3.0-canary-5623f2acf-20230817"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1270 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-canary-e50531692-20230817";
var ReactVersion = "18.3.0-canary-5623f2acf-20230817";
// ATTENTION
// When adding new symbols to this file,
@@ -616,4 +616,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-e50531692-20230817";
exports.version = "18.3.0-canary-5623f2acf-20230817";
@@ -619,7 +619,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-e50531692-20230817";
exports.version = "18.3.0-canary-5623f2acf-20230817";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -1 +1 @@
e50531692010bbda2a4627b07c7c810c3770a52a
5623f2acf93d762b0b67dab76668b564a6f3b21e