docs: function makeRequireFunction() {
      const Module = this.constructor;
      const self = this;
  
      function require(path) {
          try {
              exports.requireDepth += 1;
              return self.require(path);
          } finally {
              exports.requireDepth -= 1;
          }
      }
  
      function resolve(request) {
          return Module._resolveFilename(request, self);
      }
  
      require.resolve = resolve;
  
      require.main = process.mainModule;
  
      // Enable support to add extra extension types.
      require.extensions = Module._extensions;
  
      require.cache = Module._cache;
  
      return require;
  }