We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63d3655 commit 8980197Copy full SHA for 8980197
packages/core/src/compiler/template.ts
@@ -71,7 +71,7 @@ export async function compileSFCTemplate(
71
))
72
return
73
74
- const insertPosition = node.openingElement.end - 1
+ const insertPosition = node.openingElement.end - (node.openingElement.selfClosing ? 2 : 1)
75
const { line, column } = node.loc.start
76
77
const content = ` ${KEY_DATA}="${relativePath}:${line}:${column}"`
0 commit comments