Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/lib/js-source-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function importJavaScriptSourceMapSymbolRemapper(

try {
contents = JSON.parse(contentsString)
consumer = new sourceMap.SourceMapConsumer(contents!)
consumer = new sourceMap.default.SourceMapConsumer(contents!)
} catch (e) {
return null
}
Expand All @@ -53,7 +53,7 @@ export async function importJavaScriptSourceMapSymbolRemapper(

// We're going to binary search through these later, so make sure they're
// sorted by their order in the generated file.
sourceMap.SourceMapConsumer.GENERATED_ORDER,
sourceMap.default.SourceMapConsumer.GENERATED_ORDER,
)

const sourceMapFileNameWithoutExt = sourceMapFileName.replace(/\.[^/]*$/, '')
Expand Down