We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 005cad3 commit c6b6e3fCopy full SHA for c6b6e3f
doc/api/esm.md
@@ -87,7 +87,8 @@ If the nearest parent `package.json` lacks a `"type"` field, or contains
87
`"type": "commonjs"`, extensionless and `.js` files are treated as CommonJS.
88
If the volume root is reached and no `package.json` is found,
89
Node.js defers to the default, a `package.json` with no `"type"`
90
-field.
+field. "Extensionless" refers to file paths which do not contain
91
+an extension as opposed to optionally dropping a file extension in a specifier.
92
93
`import` statements of `.js` and extensionless files are treated as ES modules
94
if the nearest parent `package.json` contains `"type": "module"`.
0 commit comments