Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 690 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 690 Bytes

HotBun

  • vite like hot es module replacement but different
  • only one request per bundle
  • zero requests on updating module
  • no build step
  • dev == prod
  • using esbuild

hotbun_demo

ToDo

  • making css work
  • SSR

Running the Example

The example uses oak as a server framework.

cd ./examples/oak
# dev mode
deno run -A ./app.ts --dev
# producion mode
deno run --allow-read ./app.ts

In dev mode HotBun will watch for file changes and imidiately send them to the browser. Additionally it will inject a script for handling requests into the served html file.