Skip to content

feat(bundled-dev): pull-based HMR delivery - #24213

Draft
h-a-n-a wants to merge 4 commits into
mainfrom
hmr-pull-core
Draft

h-a-n-a wants to merge 4 commits into
mainfrom
hmr-pull-core

Conversation

@h-a-n-a

@h-a-n-a h-a-n-a commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Design (Vite side of pull-based HMR delivery for bundled dev):

  • One bundled-dev-update message {changedIds, staleIds, gen, seq} goes to every connection. Vite no longer registers clients with the dev engine.
  • The patch route renders on request: the client sends what it holds, and Vite passes the query to devEngine.renderPatch. Payload sourcemaps are served at their own URL.
  • A query longer than 6000 characters is POSTed first and the GET carries a one-use token. The module runner never POSTs.
  • A lazy import() is a normal pull to the patch route. The /@vite/lazy route is removed.

Three commits, one per rolldown PR, best reviewed one by one:

  1. pull core: feat(dev): pull-based HMR delivery rolldown/rolldown#11944
  2. POST fallback for long requests: feat(dev): shorter HMR requests and a POST fallback rolldown/rolldown#11946
  3. lazy through the pull endpoint: feat(dev)!: lazy compilation through the pull endpoint rolldown/rolldown#11952

Needs the rolldown minor that ships rolldown/rolldown#11944-#11952. Merge together with that rolldown version bump.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant