modules: explicitly initialize CJS loader
Explicitly initialize the CJS loader with module._initPaths()
instead of making it a side-effect of requiring
internal/modules/cjs/loader
- that makes it harder to reason about
when it's safe to load internal/modules/cjs/loader
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines