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 9a905c4 commit c2360fcCopy full SHA for c2360fc
packages/eslint-remote-tester/src/config/load.ts
@@ -1,3 +1,5 @@
1
+import { pathToFileURL } from 'node:url';
2
+
3
/** @internal */
4
export const loadTSConfig = async (configPath: string) => {
5
let importx: typeof import('importx') | undefined = undefined;
@@ -37,6 +39,6 @@ export const loadConfig = async (configPath: string) => {
37
39
return loadTSConfig(configPath);
38
40
}
41
- const { default: config } = await import(configPath);
42
+ const { default: config } = await import(pathToFileURL(configPath).href);
43
return config;
44
};
0 commit comments