Skip to content

Commit 26a3b4c

Browse files
committed
Merge branch 'wbinnssmith/empty-invalidate' into wbinnssmith/try-ci-test
2 parents 79478f6 + ed37e05 commit 26a3b4c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/next/src/server/dev/on-demand-entry-handler.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,10 @@ class Invalidator {
306306
this.rebuildAgain.delete(key)
307307
}
308308
}
309-
this.invalidate(rebuild)
309+
310+
if (rebuild.length > 0) {
311+
this.invalidate(rebuild)
312+
}
310313
}
311314

312315
public willRebuild(compilerKey: keyof typeof COMPILER_INDEXES) {

0 commit comments

Comments
 (0)