mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Handle indirect imports of JSX elements from external modules
Fixes #4675
This commit is contained in:
@@ -7463,7 +7463,9 @@ namespace ts {
|
||||
// Look up the value in the current scope
|
||||
if (valueSymbol && valueSymbol !== unknownSymbol) {
|
||||
links.jsxFlags |= JsxFlags.ClassElement;
|
||||
getSymbolLinks(valueSymbol).referenced = true;
|
||||
if (valueSymbol.flags & SymbolFlags.Alias) {
|
||||
markAliasSymbolAsReferenced(valueSymbol);
|
||||
}
|
||||
}
|
||||
|
||||
return valueSymbol || unknownSymbol;
|
||||
|
||||
Reference in New Issue
Block a user