Skip to content

Commit dfa4128

Browse files
committed
fix(language-core): do not generate variables for builtin directives
1 parent 15f6feb commit dfa4128

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/language-core/lib/codegen/template/elementDirectives.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ export function* generateElementDirectives(
3636
) {
3737
continue;
3838
}
39-
ctx.accessExternalVariable(camelize('v-' + prop.name), prop.loc.start.offset);
39+
40+
if (!builtInDirectives.has(prop.name)) {
41+
ctx.accessExternalVariable(camelize('v-' + prop.name), prop.loc.start.offset);
42+
}
4043

4144
yield* wrapWith(
4245
prop.loc.start.offset,

0 commit comments

Comments
 (0)