Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: reword clarification
Co-Authored-By: Myles Borins <myles.borins@gmail.com>
  • Loading branch information
azz and MylesBorins authored Dec 7, 2019
commit e05c65142cb61c72a3ef6421d97b1562fb722133
2 changes: 1 addition & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ If the nearest parent `package.json` lacks a `"type"` field, or contains
If the volume root is reached and no `package.json` is found,
Node.js defers to the default, a `package.json` with no `"type"`
field. Note that "extensionless" refers to file paths which do not contain
Comment thread
azz marked this conversation as resolved.
Resolved
an extension. It does not refer to the import specifier.
an extension as opposed to optionally dropping a file extension in a specifier.

`import` statements of `.js` and extensionless files are treated as ES modules
if the nearest parent `package.json` contains `"type": "module"`.
Expand Down