modules: remove file extension and directory resolving for esm
this build on top of the limitations of the package name map proposal. It removes file extensions and directory resolution in the resolver.
This is only currently limited for local development. When resolving dependencies file extension and directory resolution will still work.
Refs: https://github.com/domenic/package-name-maps
Alternative to https://github.com/nodejs/node/pull/21572