fix(compiler-sfc): always use offset for template block sourcemaps (#911)
This commit is contained in:
parent
f3b6559408
commit
db50009353
@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user