bun-livereload

1.0.3 • Public • Published

bun-livereload

Wrap a function with bun-livereload to automatically reload any imports inside the function the next time it is called.

import liveReload from "bun-livereload";

export default {
  fetch: liveReload(async function (req: Request) {
    const { render } = await import("./my-page.js");
    return new Response(render(req));
  }),
};

Install

bun add bun-livereload

Package Sidebar

Install

npm i bun-livereload

Weekly Downloads

71

Version

1.0.3

License

MIT

Unpacked Size

2.42 kB

Total Files

3

Last publish

Collaborators

  • jarred