Skip to content

Commit 320bc74

Browse files
Update packages/next-swc/crates/next-core/src/next_shared/resolve.rs
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
1 parent e2db79b commit 320bc74

File tree

1 file changed

+1
-1
lines changed
  • packages/next-swc/crates/next-core/src/next_shared

1 file changed

+1
-1
lines changed

packages/next-swc/crates/next-core/src/next_shared/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl ResolvePlugin for NextNodeSharedRuntimeResolvePlugin {
205205

206206
let (base, _) = path.split_at(starting_index);
207207

208-
let new_path = fs_path.root().join(base.to_string()).join(resource_request);
208+
let new_path = fs_path.root().join(format!("{base}/{resource_request}"));
209209

210210
Ok(Vc::cell(Some(
211211
ResolveResult::source(Vc::upcast(FileSource::new(new_path))).into(),

0 commit comments

Comments
 (0)