diff --git a/lib/src/legacy/importer.ts b/lib/src/legacy/importer.ts index 0921c329..149c55cf 100644 --- a/lib/src/legacy/importer.ts +++ b/lib/src/legacy/importer.ts @@ -125,7 +125,9 @@ export class LegacyImporterWrapper 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; }