module: package exports dot main support
This reintroduces the dot main in exports as discussed in the previous Node.js modules meeting.
The implementation includes both CommonJS and ES module resolution with the associated documentation and resolver specification changes.
In addition to the dot main, "exports" as a string or direct fallback array is supported as well.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines