node/lib/internal/modules/cjs
Joyee Cheung 7c816b7588
module: 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`.

PR-URL: https://github.com/nodejs/node/pull/27313
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-04-22 17:30:09 +08:00
..
helpers.js lib: enforce the use of Object from primordials 2019-04-12 05:38:45 +02:00
loader.js module: explicitly initialize CJS loader 2019-04-22 17:30:09 +08:00