async function processIconSet(iconSet) {
      // if cacheBusting is being done via url query icons must be generated before cache busting runs
      if (cacheMode === `query`) {
        for (const dstIcon of iconSet) {
          await checkCache(cache, dstIcon, icon, iconDigest, generateIcon);
        }
      }

      if (cacheMode !== `none`) {
        iconSet = iconSet.map(icon => {
          const newIcon = { ...icon
          };
          newIcon.src = (0, _common.addDigestToPath)(icon.src, iconDigest, cacheMode);
          return newIcon;
        });
      } // if file names are being modified by cacheBusting icons must be generated after cache busting runs


      if (cacheMode !== `query`) {
        for (const dstIcon of iconSet) {
          await checkCache(cache, dstIcon, icon, iconDigest, generateIcon);
        }
      }

      return iconSet;
    }
/**
     * Given an array of icon configs, generate the various output sizes from
     * the source icon image.
     */
Given an array of icon configs, generate the various output sizes from
the source icon image.
Given an array of icon configs generate the various output sizes from the source icon image .
async function processIconSet(iconSet) {
      if (cacheMode === `query`) {
        for (const dstIcon of iconSet) {
          await checkCache(cache, dstIcon, icon, iconDigest, generateIcon);
        }
      }
      if (cacheMode !== `none`) {
        iconSet = iconSet.map(icon => {
          const newIcon = { ...icon
          };
          newIcon.src = (0, _common.addDigestToPath)(icon.src, iconDigest, cacheMode);
          return newIcon;
        });
      } 
      if (cacheMode !== `query`) {
        for (const dstIcon of iconSet) {
          await checkCache(cache, dstIcon, icon, iconDigest, generateIcon);
        }
      }
      return iconSet;
    }
async function processIconSet ( iconSet ) { if ( cacheMode === ` ` ) { for ( const dstIcon of iconSet ) { await checkCache ( cache , dstIcon , icon , iconDigest , generateIcon ) ; } } if ( cacheMode !== ` ` ) { iconSet = iconSet . map ( icon => { const newIcon = { ... icon } ; newIcon . src = ( 0 , _common . addDigestToPath ) ( icon . src , iconDigest , cacheMode ) ; return newIcon ; } ) ; } if ( cacheMode !== ` ` ) { for ( const dstIcon of iconSet ) { await checkCache ( cache , dstIcon , icon , iconDigest , generateIcon ) ; } } return iconSet ; }
Given an array of icon configs, generate the various output sizes from
 the source icon image.
Given an array of icon configs generate the various output sizes from the source icon image .
// if cacheBusting is being done via url query icons must be generated before cache busting runs // if file names are being modified by cacheBusting icons must be generated after cache busting runs