diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 33742378b61..f53a2e2a636 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -4874,6 +4874,7 @@ module ts { node.flags & NodeFlags.Export || node.kind === SyntaxKind.ImportEqualsDeclaration && (node).moduleReference.kind === SyntaxKind.ExternalModuleReference || node.kind === SyntaxKind.ExportAssignment + || node.kind === SyntaxKind.ImportDeclaration ? node : undefined); }