Covers both watch mode and hot mode for Bun development. Watch mode restarts your process in about 20ms when files change, which is fine for most scripts and tests. Hot mode is the interesting one: it reloads modules in place during Bun.serve without restarting, so you can preserve state like counters or WebSocket connections across changes. The import.meta.hot API gives you lifecycle hooks for cleanup and custom reload logic. Includes patterns for stateful servers using globalThis and a custom file watcher implementation if you need more control. The comparison table and common errors section are genuinely useful for knowing which flag to reach for.
npx skills add https://github.com/secondsky/claude-skills --skill bun-hot-reloading