From 8b5feed94b986c3720588ae5f5860c46b8200ea7 Mon Sep 17 00:00:00 2001 From: Drylian <109999325+drylian@users.noreply.github.com> Date: Sun, 23 Feb 2025 19:42:22 -0400 Subject: [PATCH] Update esm.mts For windows users for some reason in some import relative "./importname" the files inside the join was resulting in ".file:..." Generating error, so I just moved the file:// out of the path, ensuring that it would look correctly and work on Windows --- packages/register/esm.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/register/esm.mts b/packages/register/esm.mts index 4cacbd617..7b04ff415 100644 --- a/packages/register/esm.mts +++ b/packages/register/esm.mts @@ -217,7 +217,7 @@ export const resolve: ResolveHook = async (specifier, context, nextResolve) => { // local project file if (path && isPathNotInNodeModules(path)) { debug('resolved: typescript', specifier, path) - const url = new URL(join('file://', path)) + const url = new URL('file://' + join(path)) return addShortCircuitSignal({ ...context, url: url.href,