Skip to content

Commit 658315c

Browse files
chore(release): new release (#590)
1 parent 7d8c24f commit 658315c

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎.changeset/perf-alias-and-exports-buckets.md‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# enhanced-resolve
22

3+
## 5.21.6
4+
5+
### Patch Changes
6+
7+
- Speed up alias resolution on the hot path. (by [@alexander-akait](https://github.com/alexander-akait) in [#589](https://github.com/webpack/enhanced-resolve/pull/589))
8+
- `AliasPlugin` / `TsconfigPathsPlugin`: bucket compiled alias options by the first char code of `name`, so resolves skip options whose name can't possibly match the request's first char. Gated to cases with 2+ distinct first chars so degenerate single-bucket lists (e.g. long alias chains) don't pay for the `Map.get`.
9+
- `TsconfigPathsPlugin`: memoize `_selectPathsDataForContext(map, requestPath)` per map so the per-source-file `contextList` scan only runs once per directory. Gated to maps with 2+ contexts so single-context tsconfigs aren't penalized by the cache lookup.
10+
11+
Biggest wins on alias-heavy configs (300+ entries): `huge-alias-miss` +151%, `huge-alias-list` +126%, `alias-first-char-miss` +120%.
12+
313
## 5.21.5
414

515
### Patch Changes

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "enhanced-resolve",
3-
"version": "5.21.5",
3+
"version": "5.21.6",
44
"description": "Offers a async require.resolve function. It's highly configurable.",
55
"homepage": "http://github.com/webpack/enhanced-resolve",
66
"repository": {

0 commit comments

Comments
 (0)