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