Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: Normalise ANR debug image file paths if appRoot was supplied
  • Loading branch information
timfish committed Dec 13, 2024
commit c1a1ae8b9202bb15336d991eb9bac9c7640e7935
8 changes: 5 additions & 3 deletions packages/node/src/integrations/anr/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,13 @@ function applyDebugMeta(event: Event): void {

if (filenameToDebugId.size > 0) {
const images: DebugImage[] = [];
for (const [filename, debugId] of filenameToDebugId.entries()) {
for (const [filename, debug_id] of filenameToDebugId.entries()) {
const code_file = options.appRootPath ? normalizeUrlToBase(filename, options.appRootPath) : filename;

images.push({
type: 'sourcemap',
code_file: filename,
debug_id: debugId,
code_file,
debug_id,
});
}
event.debug_meta = { images };
Expand Down
Loading