-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.experimentalIssues and PRs related to experimental features.Issues and PRs related to experimental features.
Description
From the ESM docs (emphasis mine):
importstatements of.jsand extensionless files are treated as ES modules if the nearest parentpackage.jsoncontains"type": "module".
Unless I am mistaken (discussed in nodejs/modules#443), extensionless module resolution is not currently supported.
How can you have an import statement for an extensionless file when it does not resolve?
Metadata
Metadata
Assignees
Labels
esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.experimentalIssues and PRs related to experimental features.Issues and PRs related to experimental features.