@@ -1136,9 +1136,8 @@ namespace ts {
11361136 const symbol = getSymbolOfNode(node);
11371137 const target = resolveAlias(symbol);
11381138 if (target) {
1139- const markAlias =
1140- (target === unknownSymbol && compilerOptions.isolatedModules) ||
1141- (target !== unknownSymbol && (target.flags & SymbolFlags.Value) && !isConstEnumOrConstEnumOnlyModule(target));
1139+ const markAlias = target === unknownSymbol ||
1140+ ((target.flags & SymbolFlags.Value) && !isConstEnumOrConstEnumOnlyModule(target));
11421141
11431142 if (markAlias) {
11441143 markAliasSymbolAsReferenced(symbol);
@@ -2633,7 +2632,7 @@ namespace ts {
26332632 const internalModuleReference = <Identifier | QualifiedName>(<ImportEqualsDeclaration>declaration).moduleReference;
26342633 const firstIdentifier = getFirstIdentifier(internalModuleReference);
26352634 const importSymbol = resolveName(declaration, firstIdentifier.text, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace,
2636- Diagnostics.Cannot_find_name_0, firstIdentifier );
2635+ undefined, undefined );
26372636 if (importSymbol) {
26382637 buildVisibleNodeList(importSymbol.declarations);
26392638 }
@@ -17113,14 +17112,12 @@ namespace ts {
1711317112
1711417113 function isAliasResolvedToValue(symbol: Symbol): boolean {
1711517114 const target = resolveAlias(symbol);
17116- if (target === unknownSymbol && compilerOptions.isolatedModules ) {
17115+ if (target === unknownSymbol) {
1711717116 return true;
1711817117 }
1711917118 // const enums and modules that contain only const enums are not considered values from the emit perspective
1712017119 // unless 'preserveConstEnums' option is set to true
17121- return target !== unknownSymbol &&
17122- target &&
17123- target.flags & SymbolFlags.Value &&
17120+ return target.flags & SymbolFlags.Value &&
1712417121 (compilerOptions.preserveConstEnums || !isConstEnumOrConstEnumOnlyModule(target));
1712517122 }
1712617123
0 commit comments