Commit 976ab19
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
File tree
34 files changed
+86
-86
lines changed- compiled/facebook-www
34 files changed
+86
-86
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1434 | 1434 | | |
1435 | 1435 | | |
1436 | 1436 | | |
1437 | | - | |
| 1437 | + | |
1438 | 1438 | | |
1439 | 1439 | | |
1440 | 1440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1434 | 1434 | | |
1435 | 1435 | | |
1436 | 1436 | | |
1437 | | - | |
| 1437 | + | |
1438 | 1438 | | |
1439 | 1439 | | |
1440 | 1440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
| 613 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
| 613 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
| 617 | + | |
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
| 617 | + | |
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19318 | 19318 | | |
19319 | 19319 | | |
19320 | 19320 | | |
19321 | | - | |
| 19321 | + | |
19322 | 19322 | | |
19323 | 19323 | | |
19324 | | - | |
| 19324 | + | |
19325 | 19325 | | |
19326 | 19326 | | |
19327 | 19327 | | |
| |||
19355 | 19355 | | |
19356 | 19356 | | |
19357 | 19357 | | |
19358 | | - | |
| 19358 | + | |
19359 | 19359 | | |
19360 | 19360 | | |
19361 | 19361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19089 | 19089 | | |
19090 | 19090 | | |
19091 | 19091 | | |
19092 | | - | |
| 19092 | + | |
19093 | 19093 | | |
19094 | 19094 | | |
19095 | | - | |
| 19095 | + | |
19096 | 19096 | | |
19097 | 19097 | | |
19098 | 19098 | | |
| |||
19126 | 19126 | | |
19127 | 19127 | | |
19128 | 19128 | | |
19129 | | - | |
| 19129 | + | |
19130 | 19130 | | |
19131 | 19131 | | |
19132 | 19132 | | |
| |||
0 commit comments