Skip to content

Commit 9047e9f

Browse files
committed
fixup! fixup! perf(@angular/build): reduce watcher debounce latency for faster incremental rebuilds
1 parent 673c60c commit 9047e9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/angular/build/src/tools/esbuild

packages/angular/build/src/tools/esbuild/watcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ async function createChokidarWatcher(
531531
let queue: WatcherQueue;
532532
if (options?.polling) {
533533
const pollingInterval = options.interval ?? 100;
534-
const debounceMs = Math.max(100, Math.ceil(pollingInterval * 1.5));
534+
const debounceMs = Math.min(250, Math.max(100, Math.ceil(pollingInterval * 1.5)));
535535
const maxWaitMs = Math.max(500, debounceMs * 3);
536536
queue = new WatcherQueue(debounceMs, maxWaitMs);
537537
} else {

0 commit comments

Comments
 (0)