Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 24, 2024
1 parent 63d29b4 commit e93bd6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e93bd6e

Please sign in to comment.