Skip to content

Commit d4b03e0

Browse files
committed
chore: add devtools-vite changeset, remove planning docs from PR
1 parent a85ff0b commit d4b03e0

6 files changed

Lines changed: 9 additions & 2559 deletions
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@tanstack/devtools-vite': minor
3+
---
4+
5+
feat: deliver devtools events from isolated server runtimes over Vite's native HotChannel
6+
7+
Server code running in an isolated runtime (Nitro v3 worker thread, Cloudflare `workerd`, or any separate thread/process) does not share `globalThis.__TANSTACK_EVENT_TARGET__` with the Vite dev process, so devtools events emitted on the server never reached the panel.
8+
9+
The Vite plugin now bridges those events over the framework's existing `import.meta.hot` HotChannel — the same connection the runtime already uses for HMR. It injects a tiny, dev-only bridge into the event client when it runs in a non-client environment and wires each server environment's hot channel to the in-process `ServerEventBus`. No new WebSocket, no fetch, no reconnect logic, and no new runtime dependencies; the bridge is fully tree-shaken in production.

.superpowers/sdd/progress.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)