Skip to content

Commit e5c995d

Browse files
committed
Remove deleteAppClientCache() call from webpack plugin
1 parent bcd2582 commit e5c995d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/next/src/build/webpack/plugins/nextjs-require-cache-hot-reloader.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,11 @@ export class NextJsRequireCacheHotReloader implements WebpackPluginInstance {
9494
// we need to make sure to clear all server entries from cache
9595
// since they can have a stale webpack-runtime cache
9696
// which needs to always be in-sync
97-
let hasAppEntry = false
9897
const entries = [...compilation.entries.keys()].filter((entry) => {
9998
const isAppPath = entry.toString().startsWith('app/')
100-
if (isAppPath) hasAppEntry = true
10199
return entry.toString().startsWith('pages/') || isAppPath
102100
})
103101

104-
if (hasAppEntry) {
105-
deleteAppClientCache()
106-
}
107-
108102
for (const page of entries) {
109103
const outputPath = path.join(
110104
compilation.outputOptions.path!,

0 commit comments

Comments
 (0)