Skip to content

posporus/HotBun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

like vite but different🦕

Resources

Stars

Watchers

Forks