Skip to content

Commit 976ab19

Browse files
committed
[DevTools] Source Map Stack Traces such in await locations (facebook#34094)
Stacked on facebook#34093. Instead of using the original `ReactStackTrace` that has the call sites on the server, this parses the `Error` object which has the virtual call sites on the client. We'll need this technique for things stack traces suspending on the client anyway like `use()`. We can then use these callsites to source map in the front end. We currently don't source map function names but might be useful for this use case as well as getting original component names from prod. One thing this doesn't do yet is that it doesn't ignore list the stack traces on the client using the source map's ignore list setting. It's not super important since we expect to have already ignore listed on the server but this will become important for client stack traces like `use()`. DiffTrain build for [b080063](facebook@b080063)
1 parent 4e22ee1 commit 976ab19

34 files changed

+86
-86
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
99fd4f2ac1fc9bd6b7aeb57afb2bcb1599ad1165
1+
b080063331af4d2c359b3cc576813dbca6e7db5c
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
99fd4f2ac1fc9bd6b7aeb57afb2bcb1599ad1165
1+
b080063331af4d2c359b3cc576813dbca6e7db5c

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ __DEV__ &&
14341434
exports.useTransition = function () {
14351435
return resolveDispatcher().useTransition();
14361436
};
1437-
exports.version = "19.2.0-www-classic-99fd4f2a-20250805";
1437+
exports.version = "19.2.0-www-classic-b0800633-20250806";
14381438
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14391439
"function" ===
14401440
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ __DEV__ &&
14341434
exports.useTransition = function () {
14351435
return resolveDispatcher().useTransition();
14361436
};
1437-
exports.version = "19.2.0-www-modern-99fd4f2a-20250805";
1437+
exports.version = "19.2.0-www-modern-b0800633-20250806";
14381438
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14391439
"function" ===
14401440
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,4 +610,4 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.2.0-www-classic-99fd4f2a-20250805";
613+
exports.version = "19.2.0-www-classic-b0800633-20250806";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,4 +610,4 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.2.0-www-modern-99fd4f2a-20250805";
613+
exports.version = "19.2.0-www-modern-b0800633-20250806";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ exports.useSyncExternalStore = function (
614614
exports.useTransition = function () {
615615
return ReactSharedInternals.H.useTransition();
616616
};
617-
exports.version = "19.2.0-www-classic-99fd4f2a-20250805";
617+
exports.version = "19.2.0-www-classic-b0800633-20250806";
618618
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
619619
"function" ===
620620
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ exports.useSyncExternalStore = function (
614614
exports.useTransition = function () {
615615
return ReactSharedInternals.H.useTransition();
616616
};
617-
exports.version = "19.2.0-www-modern-99fd4f2a-20250805";
617+
exports.version = "19.2.0-www-modern-b0800633-20250806";
618618
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
619619
"function" ===
620620
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19318,10 +19318,10 @@ __DEV__ &&
1931819318
(function () {
1931919319
var internals = {
1932019320
bundleType: 1,
19321-
version: "19.2.0-www-classic-99fd4f2a-20250805",
19321+
version: "19.2.0-www-classic-b0800633-20250806",
1932219322
rendererPackageName: "react-art",
1932319323
currentDispatcherRef: ReactSharedInternals,
19324-
reconcilerVersion: "19.2.0-www-classic-99fd4f2a-20250805"
19324+
reconcilerVersion: "19.2.0-www-classic-b0800633-20250806"
1932519325
};
1932619326
internals.overrideHookState = overrideHookState;
1932719327
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19355,7 +19355,7 @@ __DEV__ &&
1935519355
exports.Shape = Shape;
1935619356
exports.Surface = Surface;
1935719357
exports.Text = Text;
19358-
exports.version = "19.2.0-www-classic-99fd4f2a-20250805";
19358+
exports.version = "19.2.0-www-classic-b0800633-20250806";
1935919359
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1936019360
"function" ===
1936119361
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19089,10 +19089,10 @@ __DEV__ &&
1908919089
(function () {
1909019090
var internals = {
1909119091
bundleType: 1,
19092-
version: "19.2.0-www-modern-99fd4f2a-20250805",
19092+
version: "19.2.0-www-modern-b0800633-20250806",
1909319093
rendererPackageName: "react-art",
1909419094
currentDispatcherRef: ReactSharedInternals,
19095-
reconcilerVersion: "19.2.0-www-modern-99fd4f2a-20250805"
19095+
reconcilerVersion: "19.2.0-www-modern-b0800633-20250806"
1909619096
};
1909719097
internals.overrideHookState = overrideHookState;
1909819098
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19126,7 +19126,7 @@ __DEV__ &&
1912619126
exports.Shape = Shape;
1912719127
exports.Surface = Surface;
1912819128
exports.Text = Text;
19129-
exports.version = "19.2.0-www-modern-99fd4f2a-20250805";
19129+
exports.version = "19.2.0-www-modern-b0800633-20250806";
1913019130
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1913119131
"function" ===
1913219132
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)