We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a19168 commit 8ace62aCopy full SHA for 8ace62a
packages/cli/load.mjs
@@ -1,5 +1,4 @@
1
import { normalize, join, dirname } from 'node:path';
2
-import { pathToFileURL } from 'node:url';
3
import { writeFile, mkdir } from 'node:fs/promises';
4
import nv from '@pkgjs/nv';
5
import autocannon from 'autocannon';
@@ -50,8 +49,7 @@ export default function main (_opts = {}) {
50
49
let conf = {};
51
try {
52
const configPath = join(cwd, _opts.config || 'expf.config.json');
53
- const configUrl = pathToFileURL(configPath).href;
54
- conf = (await import(configUrl, {
+ conf = (await import(configPath, {
55
with: {
56
type: 'json'
57
}
0 commit comments