static generateExcludes(excludes) {
    const result = [];

    for (let exclude of excludes) {
      if (typeof exclude === 'string') {
        result.push(exclude);
        continue;
      }
      if (exclude && typeof exclude === 'object') {
        if (exclude.group === 'builtins') {
          result.push(...builtins);
        }
      }
    }

    return result;
  }
/**
   * Generates an exclude array
   * @param {Array<string|object>} excludes - The excludes array to use as a base.
   */
Generates an exclude array
@param {Array} excludes - The excludes array to use as a base.
Generates an exclude array @param { Array } excludes - The excludes array to use as a base .
static generateExcludes(excludes) {
    const result = [];
    for (let exclude of excludes) {
      if (typeof exclude === 'string') {
        result.push(exclude);
        continue;
      }
      if (exclude && typeof exclude === 'object') {
        if (exclude.group === 'builtins') {
          result.push(...builtins);
        }
      }
    }
    return result;
  }
static generateExcludes ( excludes ) { const result = [ ] ; for ( let exclude of excludes ) { if ( typeof exclude === 'string' ) { result . push ( exclude ) ; continue ; } if ( exclude && typeof exclude === 'object' ) { if ( exclude . group === 'builtins' ) { result . push ( ... builtins ) ; } } } return result ; }
Generates an exclude array
 @param {Array<string|object>} excludes - The excludes array to use as a base.
Generates an exclude array @param { Array<string|object > } excludes - The excludes array to use as a base .