Skip to content

Commit

Permalink
Update packages/vscode-extension/src/debugging/DebugAdapter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagiera authored Oct 22, 2024
1 parent d5b61ea commit fb61f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vscode-extension/src/debugging/DebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ export class DebugAdapter extends DebugSession {
const sourceMap = JSON.parse(decodedData);
const consumer = await new SourceMapConsumer(sourceMap);

// This is a heuristic that checks if the source map should contain __env__
// module that is added by expo, but not reported in the source map
// We detect when a source map for the entire bundle is loaded by checking
// if __env__ module is present in the sources.
const isFileWithOffset = sourceMap.sources.includes("__prelude__");

// When using expo <${PUT_VERSION_HERE}, source maps skip the prelude module which is
Expand Down

0 comments on commit fb61f3c

Please sign in to comment.