@@ -1136,9 +1136,8 @@ namespace ts {
1136
1136
const symbol = getSymbolOfNode(node);
1137
1137
const target = resolveAlias(symbol);
1138
1138
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));
1142
1141
1143
1142
if (markAlias) {
1144
1143
markAliasSymbolAsReferenced(symbol);
@@ -2633,7 +2632,7 @@ namespace ts {
2633
2632
const internalModuleReference = <Identifier | QualifiedName>(<ImportEqualsDeclaration>declaration).moduleReference;
2634
2633
const firstIdentifier = getFirstIdentifier(internalModuleReference);
2635
2634
const importSymbol = resolveName(declaration, firstIdentifier.text, SymbolFlags.Value | SymbolFlags.Type | SymbolFlags.Namespace,
2636
- Diagnostics.Cannot_find_name_0, firstIdentifier );
2635
+ undefined, undefined );
2637
2636
if (importSymbol) {
2638
2637
buildVisibleNodeList(importSymbol.declarations);
2639
2638
}
@@ -17113,14 +17112,12 @@ namespace ts {
17113
17112
17114
17113
function isAliasResolvedToValue(symbol: Symbol): boolean {
17115
17114
const target = resolveAlias(symbol);
17116
- if (target === unknownSymbol && compilerOptions.isolatedModules ) {
17115
+ if (target === unknownSymbol) {
17117
17116
return true;
17118
17117
}
17119
17118
// const enums and modules that contain only const enums are not considered values from the emit perspective
17120
17119
// unless 'preserveConstEnums' option is set to true
17121
- return target !== unknownSymbol &&
17122
- target &&
17123
- target.flags & SymbolFlags.Value &&
17120
+ return target.flags & SymbolFlags.Value &&
17124
17121
(compilerOptions.preserveConstEnums || !isConstEnumOrConstEnumOnlyModule(target));
17125
17122
}
17126
17123
0 commit comments