Skip to content

Commit

Permalink
fix: filter out illegal sourcemap items (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
zouhangwithsweet authored Jan 27, 2022
1 parent aba877e commit 6644466
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/esbuild/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export function combineSourcemaps (
filename: string,
sourcemapList: Array<DecodedSourceMap | RawSourceMap>
): RawSourceMap {
sourcemapList = sourcemapList.filter(m => m.sources)

if (
sourcemapList.length === 0 ||
sourcemapList.every(m => m.sources.length === 0)
Expand Down

0 comments on commit 6644466

Please sign in to comment.