Skip to content

Commit

Permalink
avoid sending issues turbopack messages to browser (#61443)
Browse files Browse the repository at this point in the history
### What?

avoid sending issues turbopack messages to browser

### Why?

they trigger fake HMR events and are not used on client side anyway


Closes PACK-2338
  • Loading branch information
sokra authored Jan 31, 2024
1 parent 9945e87 commit d6badf8
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 d6badf8

Please sign in to comment.