Skip to content

Commit d941177

Browse files
committed
check if moduleResolution when verifying that program can be reused
1 parent 5fef080 commit d941177

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)