From c3eb4e38c277532ddcef8df552fc2638ec584989 Mon Sep 17 00:00:00 2001 From: Hendrik Liebau Date: Mon, 5 Aug 2024 17:14:27 +0200 Subject: [PATCH] Remove `deleteAppClientCache()` call from webpack plugin --- .../webpack/plugins/nextjs-require-cache-hot-reloader.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/next/src/build/webpack/plugins/nextjs-require-cache-hot-reloader.ts b/packages/next/src/build/webpack/plugins/nextjs-require-cache-hot-reloader.ts index caa856bd142c6..786b24ca4601d 100644 --- a/packages/next/src/build/webpack/plugins/nextjs-require-cache-hot-reloader.ts +++ b/packages/next/src/build/webpack/plugins/nextjs-require-cache-hot-reloader.ts @@ -94,17 +94,11 @@ export class NextJsRequireCacheHotReloader implements WebpackPluginInstance { // we need to make sure to clear all server entries from cache // since they can have a stale webpack-runtime cache // which needs to always be in-sync - let hasAppEntry = false const entries = [...compilation.entries.keys()].filter((entry) => { const isAppPath = entry.toString().startsWith('app/') - if (isAppPath) hasAppEntry = true return entry.toString().startsWith('pages/') || isAppPath }) - if (hasAppEntry) { - deleteAppClientCache() - } - for (const page of entries) { const outputPath = path.join( compilation.outputOptions.path!,