mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Modify the changesAffectModuleResolution check
This commit is contained in:
1 parent
d71406c866
commit
55bbcff348
1 file changed
+1
-1
@@ -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