Skip to content

Commit 65c6a5e

Browse files
committed
feat(macros): add verification feature for return keyword
1 parent 35bced5 commit 65c6a5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/macros/src/volar/transform.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ export function transformJsxMacros(
8080
codes.replaceRange(
8181
node.getStart(ast),
8282
node.expression.getStart(ast),
83-
`const __render`,
83+
'const ',
84+
[`__render`, node.getStart(ast), { verification: true }],
8485
macros.defineComponent
8586
? macros.defineComponent?.expression.getText(ast) ===
8687
'defineVaporComponent'

0 commit comments

Comments
 (0)