code: function createConfIndex() {
          requireConf.baseUrl = requireConf.baseUrl.replace(/\/$/, '') + '/';
  
          // create paths index
          pathsIndex = createKVSortedIndex(requireConf.paths);
  
          // create mappingId index
          mappingIdIndex = createKVSortedIndex(requireConf.map, 1);
          each(
              mappingIdIndex,
              function (item) {
                  item.v = createKVSortedIndex(item.v);
              }
          );
  
          var lastMapItem = mappingIdIndex[mappingIdIndex.length - 1];
          if (lastMapItem && lastMapItem.k === '*') {
              each(
                  mappingIdIndex,
                  function (item) {
                      if (item != lastMapItem) {
                          item.v = item.v.concat(lastMapItem.v);
                      }
                  }
              );
          }
  
          // create packages index
          packagesIndex = [];
          each(
              requireConf.packages,
              function (packageConf) {
                  var pkg = packageConf;
                  if (typeof packageConf === 'string') {
                      pkg = {
                          name: packageConf.split('/')[0],
                          location: packageConf,
                          main: 'main'
                      };
                  }
  
                  pkg.location = pkg.location || pkg.name;
                  pkg.main = (pkg.main || 'main').replace(/\.js$/i, '');
                  pkg.reg = createPrefixRegexp(pkg.name);
                  packagesIndex.push(pkg);
              }
          );
          packagesIndex.sort(descSorterByKOrName);
  
          // create urlArgs index
          urlArgsIndex = createKVSortedIndex(requireConf.urlArgs, 1);
  
          // create bundles index
          bundlesIndex = {};
          /* eslint-disable no-use-before-define */
          function bundlesIterator(id) {
              bundlesIndex[resolvePackageId(id)] = key;
          }
          /* eslint-enable no-use-before-define */
          for (var key in requireConf.bundles) {
              each(requireConf.bundles[key], bundlesIterator);
          }
      }
docs: 创建配置信息内部索引
  
  @inner