fix(watch) remove infinite loop in watcher when compilation fails