Skip to content

Commit

Permalink
More debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Jul 29, 2024
1 parent 65ceeb3 commit 74e54a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/turbopack-core/src/resolve/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2609,7 +2609,8 @@ async fn handle_exports_imports_field(
])));
println!(
"handle_exports_imports_field reresolve {:?} {:?}",
package_path, request
package_path.await?.path,
request.dbg().await?
);

let resolve_result = resolve_internal_boxed(package_path, request, options).await?;
Expand Down
6 changes: 6 additions & 0 deletions crates/turbopack-core/src/resolve/remap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ impl AliasTemplate for SubpathValue {
.collect::<Result<Vec<_>>>()?,
),
SubpathValue::Result(value) => {
println!(
"AliasTemplate::replace {:?} {:?} {:?}",
capture,
value,
capture.spread_into_star(value)
);
SubpathValueResult::Result(capture.spread_into_star(value))
}
SubpathValue::Excluded => SubpathValueResult::Excluded,
Expand Down

0 comments on commit 74e54a0

Please sign in to comment.