Skip to content

Commit

Permalink
Improve target matching
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcompiles committed Dec 18, 2024
1 parent ed10563 commit 5d49c16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/atlaspack/src/requests/target_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,11 @@ impl TargetRequest {
.options
.targets
.as_ref()
.is_some_and(|targets| !targets.contains(&String::from(custom_target.name)))
.is_some_and(|targets| {
!targets
.iter()
.any(|target_name| target_name == custom_target.name)
})
{
tracing::debug!(
"Skipping custom target {} as it doesn't match passed in target options",
Expand Down

0 comments on commit 5d49c16

Please sign in to comment.