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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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