Skip to content

Commit dc9af8a

Browse files
committed
add some comments
1 parent 26eac3b commit dc9af8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/next/src/server/dev/hot-reloader-rspack.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ export default class HotReloaderRspack extends HotReloaderWebpack {
3434
private isEdgeServerCacheEnabled = false
3535

3636
public async afterCompile(multiCompiler: MultiCompiler): Promise<void> {
37+
// Always initialize the fallback error watcher for Rspack.
38+
// Rspack may restore/retain the previous build's error state, so without this
39+
// a page that previously failed to build might not be rebuilt on the next request.
3740
await super.buildFallbackError()
3841

3942
const rspackStartSpan = this.hotReloaderSpan.traceChild(

0 commit comments

Comments
 (0)