fix(reference): preserve unresolved absolute module specifiers (#670)

Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
Rudy Mizrahi Celekli
2026-10-06 16:18:17 +08:00
committed by GitHub
parent fa02df9ad3
commit c8aed4740d
2 changed files with 34 additions and 0 deletions
@@ -77,6 +77,8 @@ const resolveInternalSpecifier = (
specifier: string,
filePaths: ReadonlySet<string>,
): { to: string; resolution: "internal" | "unresolved" } => {
if (posix.isAbsolute(specifier))
return { to: specifier, resolution: "unresolved" };
const normalized = posix.normalize(
posix.join(posix.dirname(fromPath), specifier),
);