From d7ea4042514ebedfa748153a8ac7eb077b6cdcc5 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 2 May 2024 10:03:38 +0200 Subject: [PATCH] fix: windows path resolve, fix #42 (#43) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 97f88b7..21162d1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -152,7 +152,7 @@ export const externalPlugin = ({ ? path.resolve(args.resolveDir, args.path) : args.path return { - path: resolved, + path: pathToFileURL(resolved).toString(), external: true, } }