From 6635b9969232622fc45ae689ff388e7d18f8feb9 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Thu, 24 Aug 2023 17:19:53 +0200 Subject: [PATCH] Revert "Decreased watchpack aggregate timeout (#54461)" This reverts commit 7363bf435499ecf37d19fa6ecdf929d0ca74da2d. --- packages/next/src/server/lib/router-utils/setup-dev.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/next/src/server/lib/router-utils/setup-dev.ts b/packages/next/src/server/lib/router-utils/setup-dev.ts index 31188e28a89be..c4017d5345eec 100644 --- a/packages/next/src/server/lib/router-utils/setup-dev.ts +++ b/packages/next/src/server/lib/router-utils/setup-dev.ts @@ -87,13 +87,6 @@ import { MiddlewareManifest } from '../../../build/webpack/plugins/middleware-pl import { devPageFiles } from '../../../build/webpack/plugins/next-types-plugin/shared' import type { RenderWorkers } from '../router-server' -/** - * This is the timeout for which the watchpack will emit the `aggregate` event - * after file changes are made. This is to prevent unnecessary rebuilds when - * multiple files are changed at once. - */ -const WATCHPACK_AGGREGATE_TIMEOUT = 5 - type SetupOpts = { renderWorkers: RenderWorkers dir: string @@ -787,7 +780,6 @@ async function startWatcher(opts: SetupOpts) { files.push(...tsconfigPaths) const wp = new Watchpack({ - aggregateTimeout: WATCHPACK_AGGREGATE_TIMEOUT, ignored: (pathname: string) => { return ( !files.some((file) => file.startsWith(pathname)) &&