From ca4e71f154e0ef4d94f265179e7e7e28109f41f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jimmy=20W=C3=A4rting?= Date: Thu, 22 Jun 2023 14:19:53 +0200 Subject: [PATCH] chore: Remove the need for `node:process` --- packages/svelte/src/compiler/Stats.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/svelte/src/compiler/Stats.js b/packages/svelte/src/compiler/Stats.js index 637a3fcc696d..c69aaf4f22d5 100644 --- a/packages/svelte/src/compiler/Stats.js +++ b/packages/svelte/src/compiler/Stats.js @@ -1,10 +1,4 @@ -const now = - typeof process !== 'undefined' && process.hrtime - ? () => { - const t = process.hrtime(); - return t[0] * 1e3 + t[1] / 1e6; - } - : () => self.performance.now(); +const now = () => performance.now(); /** @param {any} timings */ function collapse_timings(timings) {