feat(turbopack): add resolve plugin condition variant of Always and Never (#88190)
This PR refactors the Resolution Plugin traits to add new `Always` or `Never` enum variants to `resolve condition`. This allow plugins (like [ExternalsPlugin](https://github.com/utooland/utoo/pull/2494) when no externals are configured) to skip the expensive `matches()` task calls entirely. Testing on a medium project showed a reduction of ~1.4k `resolve_call` tasks. I think this can be shared to upstream for future improvement of `resolve plugin` See the metrics for improvements. <img width="1400" height="600" alt="image" src="https://github.com/user-attachments/assets/06eae96e-070a-43c3-9f68-a3a27ee7dc0d" /> --------- Co-authored-by:Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment