diff --git a/src/import.ts b/src/import.ts index c5fb1ff..e7209be 100644 --- a/src/import.ts +++ b/src/import.ts @@ -168,6 +168,8 @@ export function importResolve(filepath: string, options?: ImportResolveOptions) } if (isESM) { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore moduleFilePath = fileURLToPath(import.meta.resolve(filepath)); } else { const cwd = process.cwd();