Wire up server HMR update application
Connects the server HMR infrastructure to actually apply updates: entry-base.ts: - Exposes __next__server_hmr_apply__ global from the Turbopack runtime - Adds ServerHmrUpdate type definition hot-reloader-turbopack.ts: - Adds applyServerHmrUpdate() to apply incremental module updates - Updates server HMR subscriptions to call the apply function - Falls back to full reload if update is not accepted When an update is successfully applied, the Turbopack runtime handles module disposal and re-instantiation. When not accepted, the existing clearModuleContext + deleteCache flow handles the full reload.
Showing
Please
register
or
sign in
to comment