mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
+1
-1
@@ -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.
|
||||
|
||||
|
||||
+2
-2
@@ -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__;
|
||||
|
||||
+2
-2
@@ -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__;
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -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";
|
||||
|
||||
+1
-1
@@ -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
@@ -1 +1 @@
|
||||
309c8ad9688c491e5b17beb07ab01d65594914ce
|
||||
18a9dd1c60fdb711982f32ce5d91acfe8f158fe1
|
||||
|
||||
Reference in New Issue
Block a user