Commit 0c08835
doc: remove extensionless CJS exception for type:module packages
Remove the documented exception that extensionless files in
type: "module" packages are recognized as CommonJS when included
via require(). This exception conflicted with the ESM resolution
specification which states that extensionless files within a
package scope with an explicit type field follow the format of
the type field.
The behavior on main already matches the ESM spec since #61600,
this change aligns the CJS documentation accordingly.
Refs: #61600
Refs: #62083
PR-URL: #62176
Refs: #61600
Refs: #62083
Refs: #61971
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent 6cc4cf8 commit 0c08835Copy full SHA for 0c08835
1 file changed
+7-8Lines changed: 7 additions & 8 deletions
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+7-8Lines changed: 7 additions & 8 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
76 | 76 | |
77 | 77 | |
78 | 78 | |
79 | | - |
| 79 | + |
80 | 80 | |
81 | | - |
82 | | - |
| 81 | + |
| 82 | + |
| 83 | + |
83 | 84 | |
84 | 85 | |
85 | 86 | |
| ||
90 | 91 | |
91 | 92 | |
92 | 93 | |
93 | | - |
94 | | - |
95 | | - |
96 | | - |
97 | | - |
| 94 | + |
| 95 | + |
| 96 | + |
98 | 97 | |
99 | 98 | |
100 | 99 | |
|
0 commit comments