Skip to content

Commit

Permalink
fix(compiler-sfc): always use offset for template block sourcemaps (#911
Browse files Browse the repository at this point in the history
)
  • Loading branch information
znck authored Apr 4, 2020
1 parent f3b6559 commit db50009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
}
Expand Down

0 comments on commit db50009

Please sign in to comment.