Setting up your dashboard 0 entities found · 9/32 branches scanned
Vite plugin — dev server HMR
Implement hot module replacement for .md file changes during development. When a markdown file is saved, re-transform it and trigger a page update.
Tracking started Apr 19 — check back for trends.
f2b3512Content editedby Claude
Add {ID}-{slug}.md filename convention + migrate filenames subcommand59ded4aContent editedby Claude
Implement SPEC-037 plan package hardening: all 7 work itemsf262d7bContent editedby Claude
Backfill source attributes on all 123 work items027eaeeCreated (ready)by Claude
Add SPEC-031 work items for @refrakt-md/vite plugin (WORK-094 through WO
Acceptance Criteria
- File watcher detects
.md changes in dev mode - Changed file is re-transformed through the full pipeline (parse → transform → render)
- Vite module graph is invalidated for the changed file via
server.moduleGraph.invalidateModule() - Browser receives update (full reload — same approach as existing sveltekit HMR)
- Level 2 warnings for cross-page runes display in terminal on file change
- No unnecessary re-transforms of unchanged files in Level 1 mode
Approach
- Implement
src/hmr.ts — hooks into Vite's configureServer and handleHotUpdate - On
.md file change: invalidate module, send full reload - Reference
packages/sveltekit/src/content-hmr.ts for existing pattern
Dependencies
- WORK-094 — core plugin must exist first
References
- SPEC-031 (Dev Server section)
packages/sveltekit/src/content-hmr.ts — existing HMR implementation