Skip to content

Commit

Permalink
Update packages/next-swc/crates/next-core/src/next_shared/resolve.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
  • Loading branch information
feedthejim and jridgewell authored Sep 15, 2023
1 parent e2db79b commit 320bc74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl ResolvePlugin for NextNodeSharedRuntimeResolvePlugin {

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

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

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

0 comments on commit 320bc74

Please sign in to comment.