PR feedback

This commit is contained in:
Sheetal Nandi 2017-10-02 12:22:05 -07:00
parent 9e08caebf5
commit 835153ba50
2 changed files with 2 additions and 3 deletions

View File

@ -521,7 +521,7 @@ namespace ts {
}
// Return array of values that needs emit
return arrayFrom(seenFileNamesMap.values());
return flatMapIter(seenFileNamesMap.values(), value => value);
}
}
}

View File

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