GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: clarify required flag for extensionless esm · nodejs/node@c6b6e3f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • esm.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/esm.md‎

Copy file name to clipboardExpand all lines: doc/api/esm.md
+2-1Lines changed: 2 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ If the nearest parent `package.json` lacks a `"type"` field, or contains
8787
`"type": "commonjs"`, extensionless and `.js` files are treated as CommonJS.
8888
If the volume root is reached and no `package.json` is found,
8989
Node.js defers to the default, a `package.json` with no `"type"`
90-
field.
90+
field. "Extensionless" refers to file paths which do not contain
91+
an extension as opposed to optionally dropping a file extension in a specifier.
9192

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

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.