Skip to content

Commit

Permalink
fix(dx): fix bad milliseconds feedback during hotreload
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca committed Nov 28, 2024
1 parent 8087f04 commit 5c07095
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/brisa/src/cli/dev-live-reload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ export async function activateHotReload() {
},
);

const nsEnd = nanoseconds();
const ms = ((nsEnd - nsStart) / 1000000).toFixed(2);

currentProcess.on('error', (error: any) => {
console.log(
LOG_PREFIX.ERROR,
Expand All @@ -80,6 +77,9 @@ export async function activateHotReload() {
currentProcess.on('exit', async (code: number) => {
if (code !== 0) return;

const nsEnd = nanoseconds();
const ms = ((nsEnd - nsStart) / 1000000).toFixed(2);

console.log(LOG_PREFIX.READY, `recompiled ${filename} in ${ms}ms`);
if (!globalThis.brisaServer) return;

Expand Down

0 comments on commit 5c07095

Please sign in to comment.