Hot reload not working? (BUN)
I try to setup the @hono/vite-dev-server with the default setup
vite.config.ts
src/index.tsx
The hot reload is very buggy on my side, it reload one time, and after it never updates the page again.
Did I miss something?
5 Replies
Hot reload is just broken in bun, even the
--watch
flagWhich bun version are you using?
I use 1.1.7
It's a bug coming from vite, the plugin or bun?
even not doing the vite config just a plain hono server break things for me
I may I found a way to ditch vite.
I use this package https://github.com/aabccd021/bun-html-live-reload
And I launch my app with
bun --hot src/index.tsx
The page is reloading after each save.GitHub
GitHub - aabccd021/bun-html-live-reload: Automatically reload html ...
Automatically reload html when Bun hot reloads. Contribute to aabccd021/bun-html-live-reload development by creating an account on GitHub.