next.js
42370cf3 - [turbopack] replace regex with indexof (#92023)

Commit
7 days ago
[turbopack] replace regex with indexof (#92023) Replace regex-based `isJs`/`isCss` checks with string operations (`indexOf` + `startsWith`) to avoid regex overhead on a hot path. Extracts a shared `endsWithExtension` helper that finds the end of the path portion (before `?` or `#`) and checks the extension without allocating substrings.
Author
Parents
Loading