_filterExcludesFromBundles(bundles) {
        // Remove excluded files from bundles.
        for (const bundle of bundles) {
            for (const exclude of this.excludes) {
                bundle.files.delete(exclude);
                const excludeAsFolder = exclude.endsWith('/') ? exclude : exclude + '/';
                for (const file of bundle.files) {
                    if (file.startsWith(excludeAsFolder)) {
                        bundle.files.delete(file);
                    }
                }
            }
        }
        let b = 0;
        while (b < bundles.length) {
            if (bundles[b].files.size < 0) {
                bundles.splice(b, 1);
                continue;
            }
            ++b;
        }
    }
/**
     * Given an array of Bundles, remove all files from bundles which are in the
     * "excludes" set.  Remove any bundles which are left empty after excluded
     * files are removed.
     */
Given an array of Bundles, remove all files from bundles which are in the
"excludes" set.  Remove any bundles which are left empty after excluded
files are removed.
Given an array of Bundles remove all files from bundles which are in the " excludes " set . Remove any bundles which are left empty after excluded files are removed .
_filterExcludesFromBundles(bundles) {
        for (const bundle of bundles) {
            for (const exclude of this.excludes) {
                bundle.files.delete(exclude);
                const excludeAsFolder = exclude.endsWith('/') ? exclude : exclude + '/';
                for (const file of bundle.files) {
                    if (file.startsWith(excludeAsFolder)) {
                        bundle.files.delete(file);
                    }
                }
            }
        }
        let b = 0;
        while (b < bundles.length) {
            if (bundles[b].files.size < 0) {
                bundles.splice(b, 1);
                continue;
            }
            ++b;
        }
    }
_filterExcludesFromBundles ( bundles ) { for ( const bundle of bundles ) { for ( const exclude of this . excludes ) { bundle . files . delete ( exclude ) ; const excludeAsFolder = exclude . endsWith ( '/' ) ? exclude : exclude + '/' ; for ( const file of bundle . files ) { if ( file . startsWith ( excludeAsFolder ) ) { bundle . files . delete ( file ) ; } } } } let b = 0 ; while ( b < bundles . length ) { if ( bundles [ b ] . files . size < 0 ) { bundles . splice ( b , 1 ) ; continue ; } ++ b ; } }
Given an array of Bundles, remove all files from bundles which are in the
 "excludes" set.
Given an array of Bundles remove all files from bundles which are in the " excludes " set .
// Remove excluded files from bundles.