mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-09 07:55:10 -05:00
Modify the changesAffectModuleResolution check
This commit is contained in:
@@ -322,7 +322,7 @@ namespace ts {
|
||||
|
||||
if (hasChangedCompilerOptions) {
|
||||
newLine = getNewLineCharacter(compilerOptions, system);
|
||||
if (changesAffectModuleResolution(program && program.getCompilerOptions(), compilerOptions)) {
|
||||
if (program && changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions)) {
|
||||
resolutionCache.clear();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user