Non-JS extensions not always throwing in ESM resolver #30632
Labels
esm
Issues and PRs related to the ECMAScript Modules implementation.
good first issue
Issues that are suitable for first-time contributors.
help wanted
Issues that need assistance from volunteers or PRs that need help to proceed.
In #30514 (comment) @GeoffreyBooth found a scenario in which unsupported file extensions are still being resolved by the ESM resolver as modules.
We need to ensure that all unknown file extensions throw for the ESM resolver, as is the intention in the spec described in the ESM_FORMAT specification - https://nodejs.org/dist/latest-v13.x/docs/api/esm.html#esm_resolution_algorithm.
The text was updated successfully, but these errors were encountered: