Skip to content

Commit

Permalink
fix(typescript-plugin): fix html end tag mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Mar 20, 2024
1 parent 1f54396 commit a0f63f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typescript-plugin/lib/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export function getComponentSpans(
});
if (template.lang === 'html' && !node.isSelfClosing) {
result.push({
start: start + node.loc.source.lastIndexOf(node.tag),
start: node.loc.start.offset + node.loc.source.lastIndexOf(node.tag),
length: node.tag.length,
});
}
Expand Down

0 comments on commit a0f63f3

Please sign in to comment.