Skip to content

Commit

Permalink
chore: 调整watch的超时默认值
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Dec 30, 2024
1 parent 8d01d7b commit 5f78af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/uni-cli-shared/src/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class FileWatcher {
onReady && onReady(this.watcher)
// 等首次change完,触发完ready,在切换到真实的onChange
this.onChange = onChange
}, watchOptions.readyTimeout || 300)
}, watchOptions.readyTimeout || 1000) // 300ms 在部分机器上仍有问题,调整成1000ms
}

this.onChange = checkReady
Expand Down

0 comments on commit 5f78af3

Please sign in to comment.