Skip to content

Commit

Permalink
refactor[react-devtools-extensions]: use globals to eliminate dead co…
Browse files Browse the repository at this point in the history
…de (#27516)

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

Tested by inspecting production sources.

DiffTrain build for commit 18a9dd1.
  • Loading branch information
hoxyq committed Oct 16, 2023
1 parent e94c09b commit a600d56
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
309c8ad9688c491e5b17beb07ab01d65594914ce
18a9dd1c60fdb711982f32ce5d91acfe8f158fe1

0 comments on commit a600d56

Please sign in to comment.