code: function getorigIdbyBase(options, filePath, asyncFlag) {
      var fileSyncIdMap = options.fileSyncIdMap,
          fileMainIdMap = options.fileMainIdMap;
      var extName = path.extname(filePath);
      filePath = path.resolve(filePath);
      var base = path.resolve(options.base) || path.resolve(filePath, '..');
      var diffPath = filePath.replace(base, '');
      var origId = '';
      // 兼容windows下路径
      diffPath = diffPath.replace(/\\/g, '/');
      if (diffPath.charAt(0) === '/') {
          var arr = diffPath.split('');
          arr.shift();
          diffPath = arr.join('');
      }
      origId = diffPath.replace(extName, '');
      // 同步
      if (!asyncFlag) {
          if (!fileMainIdMap[filePath]) {
              fileSyncIdMap[filePath] = origId;
          }
      } else if (!fileSyncIdMap[filePath]) {
          fileMainIdMap[filePath] = origId;
      }
      return origId;
  }
docs: /*
  解析模块基于基本路径的真实id
  param { Object } 选项
  param { String } 模块的绝对路径