packages/mendel-manifest-extract-bundles/manifest-extract.js
function visitBundle(file) {
        if (visitedIndexes[file]) {
            return;
        }
        visitedIndexes[file] = true;
        // walk deps
        var bundle = manifest.bundles[manifest.indexes[file]];
        bundle.data.forEach(function(module) {
            Object.keys(module.deps).forEach(function(key) {
                var value = module.deps[key];
                if (visitedIndexes.hasOwnProperty(value)) {
                    visitBundle(value);
                }
            });
        });
    }
function visitBundle(file) {
        if (visitedIndexes[file]) {
            return;
        }
        visitedIndexes[file] = true;
        // walk deps
        var bundle = manifest.bundles[manifest.indexes[file]];
        bundle.data.forEach(function(module) {
            Object.keys(module.deps).forEach(function(key) {
                var value = module.deps[key];
                if (visitedIndexes.hasOwnProperty(value)) {
                    visitBundle(value);
                }
            });
        });
    }
function visitBundle ( file ) { if ( visitedIndexes [ file ] ) { return ; } visitedIndexes [ file ] = true ; // walk deps var bundle = manifest . bundles [ manifest . indexes [ file ] ] ; bundle . data . forEach ( function ( module ) { Object . keys ( module . deps ) . forEach ( function ( key ) { var value = module . deps [ key ] ; if ( visitedIndexes . hasOwnProperty ( value ) ) { visitBundle ( value ) ; } } ) ; } ) ; }
recursive function to visit bundle and it's deps
recursive function to visit bundle and it s deps