esm: resolve main from package.json when importing from directory
requested to merge github/fork/lingsamuel/fix-experimental-specifier-resolution-import-dir into master
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Fixes #32103 (closed) Ref: My issue comment