MCPcopy Index your code
hub / github.com/nodejs/node / lazyModule

Function lazyModule

lib/internal/modules/helpers.js:174–176  ·  view source on GitHub ↗

* Import the Module class on first use. * @returns {object}

()

Source from the content-addressed store, hash-verified

172 * @returns {object}
173 */
174function lazyModule() {
175 return $Module ??= require('internal/modules/cjs/loader').Module;
176}
177
178/**
179 * Create the module-scoped `require` function to pass into CommonJS modules.

Callers 1

makeRequireFunctionFunction · 0.85

Calls 1

requireFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…