next.js
c4457849 - Turbopack: introduce `ReferenceTypeCondition` (#91101)

Commit
12 days ago
Turbopack: introduce `ReferenceTypeCondition` (#91101) Previously, we used `RuleCondition::ReferenceType(ReferenceType)`. But there are some problem with using the type itself as a matcher: 1. the sub types' Undefined variant (like `CssReferenceSubType::Undefined`) always matched all possible variants. So it was actually impossible to match exactly `CssReferenceSubType::Undefined` 2. variants with more complex types were also impossible to match against, like `ReferenceType::Inner(ResolvedVc<...>)`
Author
Parents
Loading