Closed
Description
From the ESM docs (emphasis mine):
import
statements of.js
and extensionless files are treated as ES modules if the nearest parentpackage.json
contains"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?
Activity