Skip to content

Commit

Permalink
fix: remove file:// from resolved path
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Jan 18, 2024
1 parent 4ab5ab6 commit eb34a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iriResolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const resolvers = new Map<string, Resolver>([
}

if (base) {
return pathToFileURL(resolve(base, url.pathname)).toString()
return pathToFileURL(resolve(base, url.pathname)).pathname
}

return url.pathname
Expand Down

0 comments on commit eb34a22

Please sign in to comment.