code: function addModuleIdsToModuleWrapper(
    module: Module,
    idForPath: ({path: string}) => number,
  ): string {
    const {dependencies, file} = module;
    const {code} = file;
  
    // calling `idForPath` on the module itself first gives us a lower module id
    // for the file itself than for its dependencies. That reflects their order
    // in the bundle.
    const fileId = idForPath(file);
  
    const paramsToAdd = [fileId];
  
    if (dependencies.length) {
      paramsToAdd.push(dependencies.map(idForPath));
    }
  
    return addParamsToDefineCall(code, ...paramsToAdd);
  }
docs: Transformed modules have the form __d(function(require, module, global, exports, dependencyMap) { /* code });  This function adds the numeric module ID, and an array with dependencies of the dependencies of the module before the closing parenthesis.