Skip to content

Commit

Permalink
More Pattern::request_pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Jul 30, 2024
1 parent 146d3d6 commit 4c2dbed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/turbopack-core/src/resolve/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ impl Request {
Request::Windows { path, .. } => Some(path.clone()),
Request::Empty => Some(Pattern::Constant("".into())),
Request::PackageInternal { path } => Some(path.clone()),
Request::Uri { .. } => None,
Request::Uri {
protocol,
remainder,
..
} => Some(Pattern::Constant(format!("{protocol}{remainder}").into())),
Request::Unknown { path } => Some(path.clone()),
Request::Dynamic => Some(Pattern::Dynamic),
Request::Alternatives { .. } => None,
Expand Down

0 comments on commit 4c2dbed

Please sign in to comment.