Skip to content

Commit

Permalink
don't error on bad sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
dylang committed Feb 9, 2021
1 parent ebdd48a commit 7bbb2f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/load-source-map/parse-source-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const parseSourceMap = async ({
const {
bundles: [{ files }]
} = await explore([{ code: src, map }], {
noBorderChecks: true, // don't throw error for bad sourcemaps
replaceMap: {
'^[^:]*:/+': '/' // Remove webpack://
}
Expand Down

0 comments on commit 7bbb2f4

Please sign in to comment.