Files
bun.sh/test/snippets/reload/other.ts
Georgijs bd2779b029 Fix --hot with empty file, make --hot faster on windows (#8708)
* reduce watcher timeout in windows, fix hot reload with empty files

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-05 14:40:18 -08:00

8 lines
242 B
TypeScript

import previous from "./timestamp.txt";
import { join } from "path";
const current = performance.now() + performance.timeOrigin;
console.log(current - previous);
require("fs").writeFileSync(join(import.meta.dir, "timestamp.txt"), current);