File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ interface BaseUpdate {
573
573
path : string
574
574
}
575
575
diagnostics : unknown [ ]
576
- issues : unknown [ ]
576
+ issues : Issue [ ]
577
577
}
578
578
579
579
interface IssuesUpdate extends BaseUpdate {
Original file line number Diff line number Diff line change @@ -313,6 +313,12 @@ export async function createHotReloaderTurbopack(
313
313
}
314
314
315
315
function sendTurbopackMessage ( payload : TurbopackUpdate ) {
316
+ // TODO(PACK-2049): For some reason we end up emitting hundreds of issues messages on bigger apps,
317
+ // a lot of which are duplicates.
318
+ // They are currently not handled on the client at all, so might as well not send them for now.
319
+ payload . diagnostics = [ ]
320
+ payload . issues = [ ]
321
+
316
322
for ( const client of clients ) {
317
323
clientStates . get ( client ) ?. turbopackUpdates . push ( payload )
318
324
}
You can’t perform that action at this time.
0 commit comments