Repository navigation
javascript: a .vue template tag links to the component it renders - #1791
Merged
Merged
Conversation
A <Child/> in a JavaScript .vue component was a FUNCTION_CALL of Child, ambiguous_unknown whenever Child was a single-file component. The tag is now a JSX_ELEMENT, so the JSX rules apply: a function or definer component renders as before, and an imported .vue component with no rendering default export (<script setup>, Options API object) reaches its module initializer. A .vue specifier through a path alias (@/components/Child.vue) is mapped through compilerOptions.paths, as tsc maps any other aliased import. Closes #1775 Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
swapnilpaliwal-sd
requested review from
JaredHLZhang,
Whua689 and
suyashpaliwal26
as code owners
September 29, 2026 07:31
Conflict in decls_all.dl with #1789: keep both sets of jsx declarations. Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.vuetemplate tag in a JavaScript component (<Child/>) is now aJSX_ELEMENT, so the JSX render rules apply to it: an imported single-file component (<script setup>or an Options API object) reaches its module initializer; adefineComponent(...)or function component renders as before..vueimport through a path alias (@/components/Child.vue, from jsconfig orvite.configresolve.alias) now resolves.72-vue-component-tagwith controls: a plain-object "component" and an aliased.vuethat does not exist stayambiguous_unknown; aliased.jsimports unchanged.Closes #1775