This is very much a WIP and not HMR (would only support basic window.reload)
Theres a new example basic-dev utilising the new createDev. Basically it creates a temp directory and moves everything into that, we need to properly filter out ignored files etc.
What works
The server starts (yay) and serves requests
What isn't working
The paths are all screwed up, the client hydration script attempts to be loaded from /_ultra/compiler/[temp path]/client.tsx which then throws an error.
Need to inject a websocket script so we can trigger a window reload
Need to handle removing files without causing an error
Need to test that appending a timestamp to the main entrypoint server.tsx works as intended for it's dependencies ie. changing something in app.tsx for instance.
This is very much a WIP and not HMR (would only support basic window.reload)
Theres a new example
basic-dev
utilising the newcreateDev
. Basically it creates atemp
directory and moves everything into that, we need to properly filter out ignored files etc.What works
What isn't working
/_ultra/compiler/[temp path]/client.tsx
which then throws an error.server.tsx
works as intended for it's dependencies ie. changing something in app.tsx for instance.