Skip to content

Commit 6913c32

Browse files
committed
Merge pull request microsoft#9009 from Microsoft/reusing-program-missing-check
check moduleResolution when verifying that program can be reused
2 parents 5fef080 + d941177 commit 6913c32

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/compiler/program.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,7 @@ namespace ts {
11431143
// if any of these properties has changed - structure cannot be reused
11441144
const oldOptions = oldProgram.getCompilerOptions();
11451145
if ((oldOptions.module !== options.module) ||
1146+
(oldOptions.moduleResolution !== options.moduleResolution) ||
11461147
(oldOptions.noResolve !== options.noResolve) ||
11471148
(oldOptions.target !== options.target) ||
11481149
(oldOptions.noLib !== options.noLib) ||

0 commit comments

Comments
 (0)