Skip to content

Commit 8cfaab2

Browse files
authored
Handle file paths that start with file:// (#3841)
1 parent 0439718 commit 8cfaab2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/resolvers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export function resolveConfigPlugins(
3434
if (
3535
typeof plugin === "string" &&
3636
!plugin.startsWith(".") &&
37-
!path.isAbsolute(plugin)
37+
!path.isAbsolute(plugin) &&
38+
!plugin.startsWith("file://")
3839
) {
3940
return resolveNodeModule(plugin, { paths: [fileName] }) || plugin;
4041
}

0 commit comments

Comments
 (0)