docs: function getMergeFiles(context, options) {
      var pkg = options.packTarget;
      var pkgExt = pkg.rExt;
  
      var mergedFileMap = {};
      var ignoreFiles = options.ignoreFiles;
      var filter = function (id) {
          if (mergedFileMap[id]) {
              return;
          }
          mergedFileMap[id] = true;
  
          var file = context.getFileById(id);
          if (file
              && (file.rExt !== pkgExt || isMatch(file.subpath, ignoreFiles))
          ) {
              return;
          }
          return file;
      };
  
      // 初始化要合并的文件
      var toMergeFiles = options.rawCombines
          && options.rawCombines.filter(function (item) {
              return filter(item.id);
          })
          || [];
      context
          .findFileByPattern(options.includeFiles, pkgExt)
          .forEach(function (item) {
              if (filter(item.id)) {
                  toMergeFiles.push(item);
              }
          });
  
      // 添加依赖文件，并更新文件的打包信息
      var index = 0;
      var packDeps = options.packDeps;
      var pkgId = options.packTarget.pkgId;
      while (index < toMergeFiles.length) {
          var processFile = toMergeFiles[index++];
          context.addFilePackInfo(processFile, pkg, pkgId);
  
          if (packDeps) {
              addMergeFile(toMergeFiles, processFile.requires, filter);
          }
      }
  
      return toMergeFiles;
  }