Skip to content

Commit

Permalink
fix (web): Disable Bun hot reloading (for now, until fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Mar 1, 2025
1 parent 957d52d commit bd8e6e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

1. `./dev`

[Bun will hot-reload](https://bun.sh/blog/bun-v1.2.3#develop-frontend-apps-with-bun-index-html) on changes!

TODO Hot reloading is broken, see [issue #1143](https://github.com/enola-dev/enola/issues/1143).

### Build

1. `./build`
Expand Down
4 changes: 0 additions & 4 deletions web/ToDo.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@

## Technical

### Productivity

* How to auto rebuild & reload in browser on file change? -- possible with vite or similar build tool

### Bazel

* Use https://github.com/aspect-build/rules_js ... would have worked for `pnpm`, but won't for `bun`...
Expand Down
3 changes: 2 additions & 1 deletion web/src/bun/develop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ const IGNORE = ["/favicon.ico"]

serve({
port: PORT,
development: true,
development: { hmr: false },

static: {
"/": index as Response,
},
Expand Down

0 comments on commit bd8e6e2

Please sign in to comment.