Repository navigation
Replace modules in place in wf dev with React Fast Refresh and import.meta.hot (#763) - #796
Open
ambroise-leclerc wants to merge 11 commits into
Open
ambroise-leclerc wants to merge 11 commits into
ambroise-leclerc wants to merge 11 commits into
Conversation
ambroise-leclerc
commented
Dec 6, 2026
ambroise-leclerc
commented
Dec 6, 2026
ambroise-leclerc
commented
Dec 6, 2026
ambroise-leclerc
commented
Dec 6, 2026
ambroise-leclerc
commented
Dec 6, 2026
AM-L
approved these changes
Dec 6, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #763. Completes the work started in #787. Stacked on #795.
What changes
wf devbuilds an incremental module graph and sends an update to the running preview instead of reloading it: the page, the bridge and theUIstay.@babel/standalone7.29.17,react-refresh0.19.0, in the environment lock) and a minimalimport.meta.hot(accept,dispose,data,invalidate), used bywf devonly. An update no module accepts reloads the page and the terminal says why.Life.tsxso that it can be refreshed.DeveloperBrowserIntegration-hot: component edit keeping state, stylesheet edit, compile error and recovery, reload fallback,import.meta.hot, and a build that carries none of it.Limits
import()or a top-levelawaitfalls back to a full reload. A hot preview is an unminified development build.acceptcovers the module itself only; modules that imported it keep its former exports.wf checkhas no built-in type forimport.meta.hot.Checks
CEF-off suite 826/826. CEF web integration 128/129 locally: five host-loop specs of
WebFrontBrowserIntegrationfail on the machine used, with and without these changes.