Skip to content

Commit a0f63f3

Browse files
committed
fix(typescript-plugin): fix html end tag mapping
1 parent 1f54396 commit a0f63f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/typescript-plugin/lib/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export function getComponentSpans(
139139
});
140140
if (template.lang === 'html' && !node.isSelfClosing) {
141141
result.push({
142-
start: start + node.loc.source.lastIndexOf(node.tag),
142+
start: node.loc.start.offset + node.loc.source.lastIndexOf(node.tag),
143143
length: node.tag.length,
144144
});
145145
}

0 commit comments

Comments
 (0)