[Refactor] hoist regex expressions for efficiency#336
Merged
ljharb merged 2 commits intobrowserify:mainfrom Oct 20, 2025
Merged
[Refactor] hoist regex expressions for efficiency#336ljharb merged 2 commits intobrowserify:mainfrom
ljharb merged 2 commits intobrowserify:mainfrom
Conversation
8d75b66 to
fc80eae
Compare
d66d585 to
a5e28aa
Compare
ljharb
pushed a commit
that referenced
this pull request
Oct 20, 2025
ljharb
added a commit
that referenced
this pull request
Oct 20, 2025
- [Refactor] hoist regex expressions for efficiency (#336) - [meta] Fix broken repository URL in package.json (#334) - [meta] add threat model - [meta] gitignore coverage output - [meta] add IRP - [Deps] update `is-core-module` - [actions] set proper permissions - [Tests] install npm 5 before npm 6 in node 7 on windows - [Dev Deps] update `@ljharb/eslint-config`, `array.prototype.map`
ljharb
added a commit
that referenced
this pull request
Oct 20, 2025
v1.22.11 - [Refactor] hoist regex expressions for efficiency (#336) - [meta] Fix broken repository URL in package.json (#334) - [meta] add threat model - [meta] gitignore coverage output - [meta] add IRP - [Deps] update `is-core-module` - [actions] set proper permissions - [Tests] install npm 5 before npm 6 in node 7 on windows - [Dev Deps] update `@ljharb/eslint-config`, `array.prototype.map`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors several regular expressions used for path matching in both the async and sync module resolution logic, pre-compiling them up front to avoid per-call work.
🤖 Authored with Continuous Efficiency Agent