Skip to content

Commit

Permalink
maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua committed Nov 28, 2023
1 parent 64b0098 commit 4dbad96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/pre_build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ function base64decode(b64) {

function parseRelativePath(from: string, to: string): string {
const specifier = import.meta.resolve(to);
console.log(import.meta.resolve(to));
if (!specifier.startsWith("file:")) return specifier;

from = path.join(Deno.cwd(), path.dirname(from));
Expand All @@ -283,7 +282,7 @@ function parseRelativePath(from: string, to: string): string {
console.log(to);
console.log(result);

return import.meta.resolve(result);
return result.replace(/\\/g, "/");
}

function getAsyncLoaderText(
Expand Down

0 comments on commit 4dbad96

Please sign in to comment.