From b3b5e6255fdc1974e4e31eadb20872236511198d Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Tue, 19 Sep 2023 13:32:41 +0200 Subject: [PATCH] Load .fxrc.js via file: prefix --- npm/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/npm/index.js b/npm/index.js index 4bdaddd..ffd2b53 100644 --- a/npm/index.js +++ b/npm/index.js @@ -577,8 +577,9 @@ function stringify(value, isPretty = false) { async function importFxrc(path) { const {join} = await import('node:path') + const {pathToFileURL} = await import('node:url') try { - await import(join(path, '.fxrc.js')) + await import(pathToFileURL(join(path, '.fxrc.js'))) } catch (err) { if (err.code !== 'ERR_MODULE_NOT_FOUND') throw err }