Skip to content

Commit

Permalink
fix(sourcemap): ignore sourceRoot before merge sourcemap
Browse files Browse the repository at this point in the history
fix #11
  • Loading branch information
underfin committed Dec 1, 2020
1 parent f483e27 commit f615caf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions serverPlugin.ts
Expand Up @@ -155,6 +155,9 @@ async function parseSFC(
loader: 'ts',
})
code = res.code
if (scriptBlock.map && scriptBlock.map.sourceRoot) {
scriptBlock.map.sourceRoot = ''
}
scriptBlock.map = mergeSourceMap(
scriptBlock.map,
JSON.parse(res.map!)
Expand Down

0 comments on commit f615caf

Please sign in to comment.