Skip to content

Commit

Permalink
Legacy importer wrapper only searches for relative URLs if the URL is…
Browse files Browse the repository at this point in the history
… not canonicalized (#226)

* Legacy importer wrapper only searches for relative URLs if the URL is not canonicalized
  • Loading branch information
Goodwine committed Jul 1, 2023
1 parent c73d448 commit 4d0ccbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/legacy/importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ export class LegacyImporterWrapper<sync extends 'sync' | 'async'>

this.expectingRelativeLoad = false;
return null;
} else {
} else if (!url.startsWith('file:')) {
// We'll only search for another relative import when the URL isn't
// absolute.
this.expectingRelativeLoad = true;
}

Expand Down

0 comments on commit 4d0ccbc

Please sign in to comment.