Skip to content

Commit 8ace62a

Browse files
fix: simplify config import in load.mjs
1 parent 1a19168 commit 8ace62a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/cli/load.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { normalize, join, dirname } from 'node:path';
2-
import { pathToFileURL } from 'node:url';
32
import { writeFile, mkdir } from 'node:fs/promises';
43
import nv from '@pkgjs/nv';
54
import autocannon from 'autocannon';
@@ -50,8 +49,7 @@ export default function main (_opts = {}) {
5049
let conf = {};
5150
try {
5251
const configPath = join(cwd, _opts.config || 'expf.config.json');
53-
const configUrl = pathToFileURL(configPath).href;
54-
conf = (await import(configUrl, {
52+
conf = (await import(configPath, {
5553
with: {
5654
type: 'json'
5755
}

0 commit comments

Comments
 (0)