Skip to content

Commit 65431a9

Browse files
committed
Check if the module exist before extracting exports from it
1 parent eb09401 commit 65431a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/compiler/checker.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,10 @@ module ts {
751751
forEach(symbol.declarations, node => {
752752
if (node.kind === SyntaxKind.SourceFile || node.kind === SyntaxKind.ModuleDeclaration) {
753753
forEach((<ExportContainer>node).exportStars, exportStar => {
754-
visit(resolveExternalModuleName(exportStar, exportStar.moduleSpecifier));
754+
var moduleSymbol = resolveExternalModuleName(exportStar, exportStar.moduleSpecifier);
755+
if (moduleSymbol) {
756+
visit(moduleSymbol);
757+
}
755758
});
756759
}
757760
});

0 commit comments

Comments
 (0)