From e3946700843e9ae5de03ccd13453a866c3214c0c Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Sat, 1 Feb 2025 21:04:30 +0100 Subject: [PATCH] test --- lib/core/pluginLoader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core/pluginLoader.js b/lib/core/pluginLoader.js index 740b09b7f5..7232f2fdf2 100644 --- a/lib/core/pluginLoader.js +++ b/lib/core/pluginLoader.js @@ -1,10 +1,12 @@ import path from 'node:path'; import { readdir as _readdir } from 'node:fs'; import { promisify } from 'node:util'; +import { fileURLToPath } from 'node:url'; import { importGlobalSilent } from 'import-global'; const readdir = promisify(_readdir); -const __dirname = path.dirname(import.meta.url); +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); const defaultPlugins = new Set([ 'browsertime',