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 a4bc638 commit d735b33Copy full SHA for d735b33
1 file changed
lib/config.js
@@ -259,7 +259,12 @@ async function loadConfigFile(configFile) {
259
}
260
} else {
261
// Try ESM import first for JS files
262
- configModule = await import(configFile)
+ const resolvedImportPath =
263
+ isWindows() && typeof configFile === 'string' && path.isAbsolute(configFile)
264
+ ? pathToFileURL(configFile).href
265
+ : configFile
266
+
267
+ configModule = await import(resolvedImportPath)
268
269
} catch (importError) {
270
try {
0 commit comments