Skip to content

Commit

Permalink
fix: ensure resolve esm id exists
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 25, 2022
1 parent 41326d4 commit 2d44274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jiti.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ export default function createJITI (_filename: string, opts: JITIOptions = {}, p
} catch (_err) {
err = _err
}
if (resolved) {
// TODO: Hot fix for mlly bypasses absolute id
if (resolved && existsSync(resolved)) {
return resolved
}

Expand Down

0 comments on commit 2d44274

Please sign in to comment.