diff --git a/cli/compat/esm_resolver.rs b/cli/compat/esm_resolver.rs index b54d9e51d4..004ea9bfa2 100644 --- a/cli/compat/esm_resolver.rs +++ b/cli/compat/esm_resolver.rs @@ -98,7 +98,7 @@ fn node_resolve( if protocol == "node" { let split_specifier = url.as_str().split(':'); - let specifier = split_specifier.skip(1).collect::>().join(""); + let specifier = split_specifier.skip(1).collect::(); if let Some(resolved) = crate::compat::try_resolve_builtin_module(&specifier) {