File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -521,7 +521,7 @@ namespace ts {
521
521
}
522
522
523
523
// Return array of values that needs emit
524
- return arrayFrom (seenFileNamesMap.values());
524
+ return flatMapIter (seenFileNamesMap.values(), value => value );
525
525
}
526
526
}
527
527
}
Original file line number Diff line number Diff line change @@ -764,8 +764,7 @@ namespace ts {
764
764
765
765
for (let i = 0; i < moduleNames.length; i++) {
766
766
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
769
768
if (file === oldSourceFile && !hasInvalidatedResolution(oldSourceFile.path)) {
770
769
const oldResolvedModule = oldSourceFile && oldSourceFile.resolvedModules.get(moduleName);
771
770
if (oldResolvedModule) {
You can’t perform that action at this time.
0 commit comments