Skip to content

Hot

JSTime supports the --hot flag to run a file with hot reloading enabled. When any module or file changes, JSTime re-runs the file.

Terminal window
jstime --hot run index.ts

JSTime detects when you are running an HTTP server with JSTime.serve(). It reloads your fetch handler when source files change, without restarting the jstime process. This makes hot reloads nearly instantaneous.

JSTime.serve({
port: 3000,
fetch(req) {
return new Response(`Hello world`);
},
});