lib/nodes/bundle.js
function(tech, bundleNode, magicNode) {

        var ctx = this.ctx,
            arch = ctx.arch,
            levelNode = arch.getNode(PATH.relative(this.root, this.level.dir)),
            depsTech = this.level.getTech('deps.js').getTechName(),
            bundles = arch.getChildren(levelNode)
                .filter(function(b) {
                    var n = arch.getNode(b);
                    return n instanceof exports.BundleNode && n !== this;
                }, this)
                .map(function(b) {
                    return U.getNodeTechPath(this.level, arch.getNode(b).item, depsTech);
                }, this);

        return this.setBemDeclNode(
            tech,
            this.level.resolveTech(tech),
            bundleNode,
            magicNode,
            'merge',
            bundles);

    }
function(tech, bundleNode, magicNode) {

        var ctx = this.ctx,
            arch = ctx.arch,
            levelNode = arch.getNode(PATH.relative(this.root, this.level.dir)),
            depsTech = this.level.getTech('deps.js').getTechName(),
            bundles = arch.getChildren(levelNode)
                .filter(function(b) {
                    var n = arch.getNode(b);
                    return n instanceof exports.BundleNode && n !== this;
                }, this)
                .map(function(b) {
                    return U.getNodeTechPath(this.level, arch.getNode(b).item, depsTech);
                }, this);

        return this.setBemDeclNode(
            tech,
            this.level.resolveTech(tech),
            bundleNode,
            magicNode,
            'merge',
            bundles);

    }
function ( tech , bundleNode , magicNode ) { var ctx = this . ctx , arch = ctx . arch , levelNode = arch . getNode ( PATH . relative ( this . root , this . level . dir ) ) , depsTech = this . level . getTech ( 'deps.js' ) . getTechName ( ) , bundles = arch . getChildren ( levelNode ) . filter ( function ( b ) { var n = arch . getNode ( b ) ; return n instanceof exports . BundleNode && n !== this ; } , this ) . map ( function ( b ) { return U . getNodeTechPath ( this . level , arch . getNode ( b ) . item , depsTech ) ; } , this ) ; return this . setBemDeclNode ( tech , this . level . resolveTech ( tech ) , bundleNode , magicNode , 'merge' , bundles ) ; }
Overriden. Creates BemDecl node linked to the deps.js nodes of the bundles within containing level.
@param tech
@param bundleNode
@param magicNode
@return {*}
Overriden . Creates BemDecl node linked to the deps . js nodes of the bundles within containing level .