Skip to content

Commit

Permalink
avoid sending issues turbopack messages to browser
Browse files Browse the repository at this point in the history
they trigger fake HMR events and are not used on client side anyway
  • Loading branch information
sokra committed Jan 31, 2024
1 parent fafcb5f commit df2eae1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,9 @@ async function startWatcher(opts: SetupOpts) {

for await (const data of subscription) {
processIssues(id, data)
sendTurbopackMessage(data)
if (data.type !== 'issues') {
sendTurbopackMessage(data)
}
}
} catch (e) {
// The client might be using an HMR session from a previous server, tell them
Expand Down

0 comments on commit df2eae1

Please sign in to comment.