mirror of
https://github.com/antonmedv/fx.git
synced 2024-08-17 14:10:46 +03:00
Load .fxrc.js via file: prefix
This commit is contained in:
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…
Reference in New Issue
Block a user