Unverified Commit a34bfcdd authored by Leah's avatar Leah Committed by GitHub

perf: don't emit issues via websocket for now (#59024)

parent 9f72146d
......@@ -573,7 +573,7 @@ interface BaseUpdate {
path: string
}
diagnostics: unknown[]
issues: unknown[]
issues: Issue[]
}
interface IssuesUpdate extends BaseUpdate {
......
......@@ -313,6 +313,12 @@ export async function createHotReloaderTurbopack(
}
function sendTurbopackMessage(payload: TurbopackUpdate) {
// TODO(PACK-2049): For some reason we end up emitting hundreds of issues messages on bigger apps,
// a lot of which are duplicates.
// They are currently not handled on the client at all, so might as well not send them for now.
payload.diagnostics = []
payload.issues = []
for (const client of clients) {
clientStates.get(client)?.turbopackUpdates.push(payload)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment