1 parent 673c60c commit 9047e9fCopy full SHA for 9047e9f
1 file changed
packages/angular/build/src/tools/esbuild/watcher.ts
@@ -531,7 +531,7 @@ async function createChokidarWatcher(
531
let queue: WatcherQueue;
532
if (options?.polling) {
533
const pollingInterval = options.interval ?? 100;
534
- const debounceMs = Math.max(100, Math.ceil(pollingInterval * 1.5));
+ const debounceMs = Math.min(250, Math.max(100, Math.ceil(pollingInterval * 1.5)));
535
const maxWaitMs = Math.max(500, debounceMs * 3);
536
queue = new WatcherQueue(debounceMs, maxWaitMs);
537
} else {
0 commit comments