Skip to content

Commit

Permalink
Revert "Decreased watchpack aggregate timeout (#54461)"
Browse files Browse the repository at this point in the history
This reverts commit 7363bf4.
  • Loading branch information
sokra authored Aug 24, 2023
1 parent 1dc5c06 commit 6635b99
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/next/src/server/lib/router-utils/setup-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)) &&
Expand Down

0 comments on commit 6635b99

Please sign in to comment.