Skip to content

modules: enforce extensions and dissalow directories

this build on top of the limitations of the package name map proposal. It enforces the use of file extensions and doesn't support index.js or package.json resolution for the default ESM loader implementation.

The current approach is naive and has lots of room for improvement but this can serve as a base for discussion

Refs: https://github.com/domenic/package-name-maps

Merge request reports

Loading