Skip to content

Commit

Permalink
Merge pull request #32626 from orta/fix-31312
Browse files Browse the repository at this point in the history
Fixes making changes on JS imports
  • Loading branch information
Orta authored Aug 2, 2019
2 parents 4a26271 + 44b13ee commit 9243415
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
6 changes: 4 additions & 2 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29986,8 +29986,10 @@ namespace ts {
function checkAliasSymbol(node: ImportEqualsDeclaration | ImportClause | NamespaceImport | ImportSpecifier | ExportSpecifier) {
const symbol = getSymbolOfNode(node);
const target = resolveAlias(symbol);
if (target !== unknownSymbol) {
// For external modules symbol represent local symbol for an alias.

const shouldSkipWithJSExpandoTargets = symbol.flags & SymbolFlags.Assignment;
if (!shouldSkipWithJSExpandoTargets && target !== unknownSymbol) {
// For external modules symbol represents local symbol for an alias.
// This local symbol will merge any other local declarations (excluding other aliases)
// and symbol.flags will contains combined representation for all merged declaration.
// Based on symbol.flags we can compute a set of excluded meanings (meaning that resolved alias should not have,
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,4 @@ namespace ts {
isDebugInfoEnabled = true;
}
}
}
}

This file was deleted.

0 comments on commit 9243415

Please sign in to comment.