oj_server 0.0.1

Dev server: on-demand compile over HTTP, WebSocket HMR channel, file watcher
Documentation

Milestone-1 dev server: real React Fast Refresh.

  • Compiles TS/TSX/JSX on demand through oj_compiler, rewriting relative imports to canonical rooted URLs so every module has one identity.
  • Maintains the module graph (oj_graph) as modules are served; file changes propagate to the nearest accepting boundary and ship as targeted update messages, falling back to full-reload.
  • Serves Meta's react-refresh runtime (vendored via @vitejs/plugin-react's ESM build) and appends the same append-only refresh glue plugin-react uses: hoisted $RefreshReg$/$RefreshSig$ locals, self-import for export-shape validation, import.meta.hot.accept in a microtask.

Still deliberately unbundled (bundle-in-dev is M3); CSS updates and server-side hot.invalidate re-propagation are M2.