diff --git a/internal/execute/watcher.go b/internal/execute/watcher.go index 827bed8b11..5697c7525d 100644 --- a/internal/execute/watcher.go +++ b/internal/execute/watcher.go @@ -54,7 +54,8 @@ func (w *watcher) hasErrorsInTsConfig() bool { } return true } - if !reflect.DeepEqual(w.options.CompilerOptions(), configParseResult.CompilerOptions()) { + // CompilerOptions contain fields which should not be compared; clone to get a copy without those set. + if !reflect.DeepEqual(w.options.CompilerOptions().Clone(), configParseResult.CompilerOptions().Clone()) { // fmt.Fprint(w.sys.Writer(), "build triggered due to config change", w.sys.NewLine()) w.configModified = true }