HonoH
Hono8mo ago
Wizzel

import.meta.hot is undefined when using hono with bun.

I am trying to add a function to the dispose callback as documented here:

https://bun.sh/docs/bundler/hmr?utm_source=chatgpt.com#import-meta-hot-api-reference

but when I log import.meta there isn't even a hot property in there.

I am using "hono": "^4.7.10" and bun 1.2.13.

This is the script I am using to start the dev server :

"dev": "bun run --hot src/index.ts"
Bun
Update modules in a running application without reloading the page using import.meta.hot
Was this page helpful?