From 2a65b015d1d046b42e64d87888dde9b75b428995 Mon Sep 17 00:00:00 2001 From: Fardjad Davari Date: Sun, 5 May 2024 12:52:42 +0200 Subject: [PATCH] fix(tsImport): resolve specifiers that are absolute paths --- src/esm/hook/resolve.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/esm/hook/resolve.ts b/src/esm/hook/resolve.ts index cefb97bd2..39d57bb53 100644 --- a/src/esm/hook/resolve.ts +++ b/src/esm/hook/resolve.ts @@ -124,6 +124,7 @@ export const resolve: resolve = async ( const isPath = ( specifier.startsWith(fileProtocol) || isRelativePathPattern.test(specifier) + || path.isAbsolute(specifier) ); // bare specifier