Commit 2909dfd
committed
doc: document subpath-pattern precedence and null blocking in exports
The exports resolution sorts subpath patterns by specificity
(lib/internal/modules/esm/resolve.js patternKeyCompare), so the pattern
with the longest matching prefix wins regardless of declaration order.
A null target blocks any subpath matching its pattern, regardless of key
position. The documentation did not state either rule, so add a short
clarification after the existing null example.
Fixes: #445171 parent 26079c0 commit 2909dfd
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
658 | 667 | | |
659 | 668 | | |
660 | 669 | | |
| |||
0 commit comments