Skip to content

Commit

Permalink
fix: include sourcesContent after remapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Nov 6, 2021
1 parent 16d0833 commit e689446
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vite/src/node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,8 @@ export function combineSourcemaps(
const useArrayInterface =
sourcemapList.slice(0, -1).find((m) => m.sources.length !== 1) === undefined
if (useArrayInterface) {
map = remapping(sourcemapList, () => null, true)
// We cann't exclude sourcesContent there. #5438
map = remapping(sourcemapList, () => null, false)
} else {
map = remapping(
sourcemapList[0],
Expand All @@ -531,7 +532,7 @@ export function combineSourcemaps(
return { ...nullSourceMap }
}
},
true
false
)
}
if (!map.file) {
Expand Down

0 comments on commit e689446

Please sign in to comment.