Commit cf8701c
module: use kNodeModulesRE to detect node_modules
This is faster and more consistent with other places using the
regular expression to detect node_modules.
PR-URL: #55243
Backport-PR-URL: #56927
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Refs: #526971 parent 64ce95b commit cf8701cCopy full SHA for cf8701c
Expand file treeCollapse file tree
2 files changed
+9
-2
lines changedOpen diff view settings
Collapse file
lib/internal/modules/esm/load.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/load.js+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
| 8 | + |
| 9 | + |
| 10 | + |
9 | 11 | |
10 | 12 | |
11 | 13 | |
|
Collapse file
+6-1Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
477 | 477 | |
478 | 478 | |
479 | 479 | |
| 480 | + |
| 481 | + |
| 482 | + |
| 483 | + |
480 | 484 | |
481 | 485 | |
482 | 486 | |
| ||
524 | 528 | |
525 | 529 | |
526 | 530 | |
527 | | - |
| 531 | + |
528 | 532 | |
529 | 533 | |
530 | 534 | |
| ||
913 | 917 | |
914 | 918 | |
915 | 919 | |
| 920 | + |
916 | 921 | |
917 | 922 | |
918 | 923 | |
|
0 commit comments