package
Livereload for Bun.js
npm install bun-livereloadGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
2.4 kB
Includes dependencies.
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));
}),
};bun add bun-livereload