docs: function genComponentWxml(compiled, options, emitFile, emitError, emitWarning) {
      options.components['slots'] = { src: 'slots', name: 'slots' };
      const x = compiler.compileToWxml(compiled, options);
      const { code: wxmlCodeStr, compiled: cp, slots, importCode } = x;
      const { mpErrors, mpTips } = cp;
  
      // 缓存 slots，延迟编译
      cacheSlots(slots, importCode);
  
      if (mpErrors && mpErrors.length) {
          emitError(`\n  Error compiling template:\n` + mpErrors.map(e => `  - ${e}`).join('\n') + '\n');
      }
      if (mpTips && mpTips.length) {
          emitWarning(mpTips.map(e => `  - ${e}`).join('\n') + '\n');
      }
  
      let str = wxmlCodeStr;
      if (importCode) {
          str = str.replace(importCode, '');
      }
      // return htmlBeautify(str);
      return {
          wxmlContent: htmlBeautify(str),
          importCode
      };
  }