Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua committed Nov 28, 2023
1 parent 99701dc commit c9db1f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/pre_build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,7 @@ function parseRelativePath(from: string, to: string): string {
to = path.fromFileUrl(specifier);
const result = path.relative(from, to).replace(/\\/g, "/");

return path.isAbsolute(result)
? import.meta.resolve(result)
: result;
return path.isAbsolute(result) ? import.meta.resolve(result) : result;
}

function getAsyncLoaderText(
Expand Down

0 comments on commit c9db1f1

Please sign in to comment.