Skip to content

Commit

Permalink
fix: don't generate variable access of template refs using `useTempla…
Browse files Browse the repository at this point in the history
…teRef`
  • Loading branch information
KazariEX committed Dec 6, 2024
1 parent 4d1e2d6 commit 2513f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-core/lib/codegen/template/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ function* generateReferencesForElements(
);
yield ` } */${endOfLine}`;

if (variableNameRegex.test(content)) {
if (variableNameRegex.test(content) && !options.templateRefNames.has(content)) {
ctx.accessExternalVariable(content, startOffset);
}

Expand Down

0 comments on commit 2513f12

Please sign in to comment.