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 authored and GitHub committed 2026-10-06 16:18:17 +08:00
1 parent fa02df9ad3
commit c8aed4740d
2 files changed
+34

No files matched your search

@@ -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),
);