packages/mendel-generator-prune/index.js
function pruneModules(bundle, doneBundles, registry, generator) {
    const {groups} = generator.options;
    groups.forEach(group => {
        const bundles = group.map(bundleId => {
            return doneBundles.find(b => b.id === bundleId);
        }).filter(Boolean);
        pruneGroup(bundles);
    });
}
function pruneModules(bundle, doneBundles, registry, generator) {
    const {groups} = generator.options;
    groups.forEach(group => {
        const bundles = group.map(bundleId => {
            return doneBundles.find(b => b.id === bundleId);
        }).filter(Boolean);
        pruneGroup(bundles);
    });
}
function pruneModules ( bundle , doneBundles , registry , generator ) { const { groups } = generator . options ; groups . forEach ( group => { const bundles = group . map ( bundleId => { return doneBundles . find ( b => b . id === bundleId ) ; } ) . filter ( Boolean ) ; pruneGroup ( bundles ) ; } ) ; }
First argument is not needed; just to make it look like normal generator API
First argument is not needed ; just to make it look like normal generator API