check if moduleResolution when verifying that program can be reused

This commit is contained in:
Vladimir Matveev committed 2016-06-07 15:08:46 -07:00
1 parent 5fef0804c8
commit d941177547
1 file changed
+1
+1
View File
@@ -1143,6 +1143,7 @@ namespace ts {
// if any of these properties has changed - structure cannot be reused
const oldOptions = oldProgram.getCompilerOptions();
if ((oldOptions.module !== options.module) ||
(oldOptions.moduleResolution !== options.moduleResolution) ||
(oldOptions.noResolve !== options.noResolve) ||
(oldOptions.target !== options.target) ||
(oldOptions.noLib !== options.noLib) ||