-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(file-router): improve the speed of the HMR injection #2411
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2411 +/- ##
==========================================
- Coverage 95.18% 95.11% -0.07%
==========================================
Files 66 66
Lines 4507 4507
Branches 644 645 +1
==========================================
- Hits 4290 4287 -3
- Misses 176 179 +3
Partials 41 41
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
Fixes #2410.
It looks like the lookbehind feature in
RegExp
is extremely slow. I replaced it with the regularRegExp
, and according to my measurements, it is almost instant.