Skip to content

Commit

Permalink
fix: bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yeliex committed Apr 9, 2024
1 parent cb31ec4 commit 069b289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/register/esm.mts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const resolve: ResolveFn = async (specifier, context, nextResolve) => {
}

const { resolvedModule } = ts.resolveModuleName(
specifier.endsWith('file:') ? fileURLToPath(specifier) : specifier,
specifier.startsWith('file:') ? fileURLToPath(specifier) : specifier,
fileURLToPath(context.parentURL),
tsconfig,
host,
Expand Down

0 comments on commit 069b289

Please sign in to comment.