Load .fxrc.js via file: prefix

pull/268/head
Anton Medvedev 9 months ago
parent f9cd047294
commit b3b5e6255f

@ -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
}

Loading…
Cancel
Save