Bun Hot Reloading
Hot Module Replacement (HMR) for Bun's development server
Install
npx skills add jarle/bun-skills --skill Bun Hot reloadinggit clone --depth 1 https://github.com/jarle/bun-skills.git /tmp/bun-skills
mkdir -p ~/.claude/skills
cp -r /tmp/bun-skills/skills/bun-bundler-hot-reloading ~/.claude/skills/Bun-Hot-reloadingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Hot reloading
> Hot Module Replacement (HMR) for Bun's development server
Hot Module Replacement (HMR) allows you to update modules in a running application without needing a full page reload. This preserves the application state and improves the development experience.
<Note>HMR is enabled by default when using Bun's full-stack development server.</Note>
## `import.meta.hot` API Reference
Bun implements a client-side HMR API modeled after [Vite's `import.meta.hot` API](https://vite.dev/guide/api-hmr). It can be checked for with `if (import.meta.hot)`, tree-shaking it in production.
```ts title="index.ts" icon="https://mintcdn.com/bun-1dd33a4e/nIz6GtMH5K-dfXeV/icons/typescript.svg?fit=max&auto=format&n=nIz6GtMH5K-dfXeV&q=85&s=5d73d76daf7eb7b158469d8c30d349b0" theme={"theme":{"light":"github-light","dark":"dracula"}}
if (import.meta.hot) {
// HMR APIs are available.
}
```
However, this check is often not needed as Bun will dead-code-eliminate calls to all of the HMR APIs in production builds.
```ts title="index.ts" icon="https://mintcdn.com/bun-1dd33a4e/nIz6GtMH5K-dfXeV/icons/typescript.svg?fit=max&auto=format&n=nIz6GtMH5K-dfXeV&q=85&s=5d73d76daf7eb7b158469d8c30d349b0" theme={"theme":{"light":"github-light","dark":"dracula"}}
// This entire function call will be removed in production!
import.meta.hot.dispose(() => {
console.log("dispose");
});
```
<Warning>Details
- Skill name
Bun Hot reloading- Repository
- jarle/bun-skills
- Path
skills/bun-bundler-hot-reloading/SKILL.md- License
- MIT
- Repo updated
- 24 February 2026
FAQ
What does the Bun Hot Reloading skill do?
Hot Module Replacement (HMR) for Bun's development server
How do I install the Bun Hot Reloading skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun Hot reloading. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bun Hot Reloading popular?
It lives in jarle/bun-skills, which has 9 GitHub stars and 1 forks.
Related skills
Bun Archive
9jarle/bun-skills
Create and extract tar archives with Bun's fast native implementation
Bun Auto Install
9jarle/bun-skills
Bun's automatic package installation feature for standalone script execution
Bun Bun Add
9jarle/bun-skills
Add packages to your project with Bun's fast package manager
Bun Macros
9jarle/bun-skills
Run JavaScript functions at bundle-time with Bun macros
Bun File System Router
9jarle/bun-skills
Bun provides a fast API for resolving routes against file-system paths
Bun Markdown
9jarle/bun-skills
Parse and render Markdown with Bun's built-in Markdown API, supporting GFM extensions and custom rendering callbacks
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.