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 e80381b commit b262f10Copy full SHA for b262f10
packages/utils/lib/config.js
@@ -119,7 +119,10 @@ export async function loadConfigFromFile(configPath) {
119
return config;
120
} else {
121
// otherwise, parse as js
122
- return (await import(configPath)).default;
+
123
+ // need to use fileURLToPath here for windows support (prefixes with file://)
124
+ const fileUrl = url.pathToFileURL(configPath);
125
+ return (await import(fileUrl.toString())).default;
126
}
127
} catch (err) {
128
throw new Error(`Unable to load config file '${chalk.white(configPath)}'`, { cause: err });
0 commit comments