Skip to content

feat(language-core): auto infer $el type #4805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Sep 6, 2024
Prev Previous commit
Next Next commit
fix: revert accidental deletion
  • Loading branch information
KazariEX committed Sep 4, 2024
commit b4c63bb61751ca67630b41f064b1ed420695c85b
4 changes: 4 additions & 0 deletions packages/language-core/lib/codegen/template/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,10 @@ function* generateReferencesForElements(
);
yield endOfLine;

if (variableNameRegex.test(content)) {
ctx.accessExternalVariable(content, startOffset);
}

return [content, startOffset];
}
}
Expand Down