next.js
96776f8c - fix(turbopack): Suppress logging for short no-op turbopack HMRs (#76924)

Commit
331 days ago
fix(turbopack): Suppress logging for short no-op turbopack HMRs (#76924) Turbopack tends to generate a lot of irrelevant `BUILDING` actions, as it reports *any* compilation, including fully no-op/cached compilations and those unrelated to HMR. Fixing this would require significant architectural changes. This PR works around the problem by deferring any "rebuilding" message by 100ms. If we get a `BUILT` event within that threshold and nothing has changed, just suppress the message entirely. Tested this with a noisy v0 repro that @henryjeff shared with me a few weeks ago (noise is caused by an API route that's polled): ![Screenshot 2025-03-18 at 3.01.44 PM.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/HAZVitxRNnZz8QMiPn4a/b26d6375-e4cf-47a3-ba91-a9d1542a4941.png) I also tested this with a pages router site (`pyra-docs` in `front`) to sanity check there.
Author
bgw bgw
Parents
Loading