Skip to content

Commit

Permalink
Remove deleteAppClientCache() call from webpack plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Aug 12, 2024
1 parent 174fc2f commit c3eb4e3
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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!,
Expand Down

0 comments on commit c3eb4e3

Please sign in to comment.