Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor optimizations in getComponentDescriptorForTarget (#6306)
**Problem:** 1. Let's early return for intrinsic elements, which are not component instances, so no reason to search for component descriptors at all. 2. Let's remove the regex replaces which remove file extensions and replace them with `stripExtension` function calls, which are significantly faster. 3. **Manual Tests:** I hereby swear that: - [x] I opened a hydrogen project and it loaded - [x] I could navigate to various routes in Preview mode
- Loading branch information