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 1cda9a7 commit 0a41d02Copy full SHA for 0a41d02
packages/cli/src/utils/config.ts
@@ -71,13 +71,13 @@ export async function loadConfigFromFile<T>(configPath: string): Promise<Partial
71
if (!configPath) {
72
return {};
73
}
74
-
+
75
const jiti = createJiti(import.meta.url);
76
77
try {
78
// need to use fileURLToPath here for windows support (prefixes with file://)
79
const fileUrl = url.pathToFileURL(configPath);
80
- return (await jiti.import(fileUrl.toString(), { default: true}));
+ return await jiti.import(fileUrl.toString(), { default: true });
81
} catch (err) {
82
throw new Error(`Unable to load config file '${chalk.white(configPath)}'`, { cause: err });
83
0 commit comments