Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experimental hot module reloading for HTML import development mode #16955

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

paperclover
Copy link
Member

@paperclover paperclover commented Feb 1, 2025

DevServer gains a new type of RouteBundle for HTML imports. HTML imports have no server files, but may co-exist alongside server routes. While only SPA-style apps are supported now, the tech supports RSC in the same graph as these HTML route bundles.

Instead of framework: "react", the framework option is currently unspecifiable. To allow React to 'just work', the default framework will automatically configure react-refresh if it is installed. If only react is installed, then an embedded copy of react-refresh is enabled to make that also 'just work'.

This PR also resolves some but not all requirements to use HMR reliably, so I still call it experimental. It is very close though.

@robobun
Copy link

robobun commented Feb 1, 2025

Updated 5:23 PM PT - Feb 5th, 2025

@paperclover, your commit 01c03df has some failures in Build #11152


🧪   try this PR locally:

bunx bun-pr 16955

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.

2 participants