mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:41:56 -05:00
Check if the module exist before extracting exports from it
This commit is contained in:
@@ -751,7 +751,10 @@ module ts {
|
||||
forEach(symbol.declarations, node => {
|
||||
if (node.kind === SyntaxKind.SourceFile || node.kind === SyntaxKind.ModuleDeclaration) {
|
||||
forEach((<ExportContainer>node).exportStars, exportStar => {
|
||||
visit(resolveExternalModuleName(exportStar, exportStar.moduleSpecifier));
|
||||
var moduleSymbol = resolveExternalModuleName(exportStar, exportStar.moduleSpecifier);
|
||||
if (moduleSymbol) {
|
||||
visit(moduleSymbol);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user