Skip to content

Commit 835153b

Browse files
committed
PR feedback
1 parent 9e08cae commit 835153b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/compiler/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ namespace ts {
521521
}
522522

523523
// Return array of values that needs emit
524-
return arrayFrom(seenFileNamesMap.values());
524+
return flatMapIter(seenFileNamesMap.values(), value => value);
525525
}
526526
}
527527
}

src/compiler/program.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,7 @@ namespace ts {
764764

765765
for (let i = 0; i < moduleNames.length; i++) {
766766
const moduleName = moduleNames[i];
767-
// If we want to reuse resolutions more aggressively, we can refine this to check for whether the
768-
// text of the corresponding modulenames has changed.
767+
// If the source file is unchanged and doesnt have invalidated resolution, reuse the module resolutions
769768
if (file === oldSourceFile && !hasInvalidatedResolution(oldSourceFile.path)) {
770769
const oldResolvedModule = oldSourceFile && oldSourceFile.resolvedModules.get(moduleName);
771770
if (oldResolvedModule) {

0 commit comments

Comments
 (0)