refactor[react-devtools-extensions]: use globals to eliminate dead code (#27516)

Small change to eliminate dead code in builds for different browsers.

Tested by inspecting production sources.

DiffTrain build for commit https://github.com/facebook/react/commit/18a9dd1c60fdb711982f32ce5d91acfe8f158fe1.
This commit is contained in:
hoxyq
2023-10-16 13:59:25 +00:00
parent e94c09b1c0
commit a600d56a00
7 changed files with 9 additions and 9 deletions
@@ -24801,7 +24801,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-canary-309c8ad96-20231015";
var ReactVersion = "18.3.0-canary-18a9dd1c6-20231016";
// Might add PROFILE later.
@@ -8968,7 +8968,7 @@ var devToolsConfig$jscomp$inline_1020 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-309c8ad96-20231015",
version: "18.3.0-canary-18a9dd1c6-20231016",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1213 = {
@@ -8999,7 +8999,7 @@ var internals$jscomp$inline_1213 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-309c8ad96-20231015"
reconcilerVersion: "18.3.0-canary-18a9dd1c6-20231016"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1214 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9394,7 +9394,7 @@ var devToolsConfig$jscomp$inline_1062 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-309c8ad96-20231015",
version: "18.3.0-canary-18a9dd1c6-20231016",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1254 = {
@@ -9425,7 +9425,7 @@ var internals$jscomp$inline_1254 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-309c8ad96-20231015"
reconcilerVersion: "18.3.0-canary-18a9dd1c6-20231016"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1255 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-canary-309c8ad96-20231015";
var ReactVersion = "18.3.0-canary-18a9dd1c6-20231016";
// ATTENTION
// When adding new symbols to this file,
@@ -580,4 +580,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-309c8ad96-20231015";
exports.version = "18.3.0-canary-18a9dd1c6-20231016";
@@ -583,7 +583,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-309c8ad96-20231015";
exports.version = "18.3.0-canary-18a9dd1c6-20231016";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -1 +1 @@
309c8ad9688c491e5b17beb07ab01d65594914ce
18a9dd1c60fdb711982f32ce5d91acfe8f158fe1