fix(compiler-sfc): always use offset for template block sourcemaps (#911)

This commit is contained in:
Rahul Kadyan
2020-04-04 06:40:22 +05:30
committed by GitHub
parent f3b6559408
commit db50009353

View File

@@ -147,7 +147,7 @@ export function parse(
source,
block.content,
sourceRoot,
pad ? 0 : block.loc.start.line - 1
!pad || block.type === 'template' ? block.loc.start.line - 1 : 0
)
}
}