Skip to content

Commit

Permalink
fix(sourcemap): empty source map chain on nullified sourcemap
Browse files Browse the repository at this point in the history
fix #1726
  • Loading branch information
yyx990803 committed Jan 26, 2021
1 parent c5fe45f commit 52c9416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/server/pluginContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ export async function createPluginContainer(
if (typeof m === 'string') m = JSON.parse(m)
if (!('version' in (m as SourceMap))) {
// empty, nullified source map
combinedMap = null
combinedMap = this.combinedMap = null
this.sourcemapChain.length = 0
break
}
if (!combinedMap) {
Expand Down

0 comments on commit 52c9416

Please sign in to comment.