Reduce resolve and resolving tasks (#6228)
### Description
* Reduce turbo-tasks resolve tasks
* Reduce tasks needed for resolving
* Avoid running resolving for every extension, instead use
Pattern::Alternatives and change `read_matches` to keep order of
alternates
### Testing Instructions
<!--
Give a quick description of steps to test your changes.
-->
Closes WEB-1806