lib/container.js
function _recursiveDeps(graph, name, deps) {
  return Object.keys(deps).forEach((key) => {
    const dep = deps[key];
    if (PLUGIN.test(dep)) {
      return;
    }
    if (typeof dep === 'string') {
      if (!graph.hasNode(dep)) {
        graph.addNode(dep);
      }
      graph.addDependency(name, dep);
    } else if (typeof dep === 'object') {
      _recursiveDeps(graph, name, deps[key]);
    }
  });
}
function _recursiveDeps(graph, name, deps) {
  return Object.keys(deps).forEach((key) => {
    const dep = deps[key];
    if (PLUGIN.test(dep)) {
      return;
    }
    if (typeof dep === 'string') {
      if (!graph.hasNode(dep)) {
        graph.addNode(dep);
      }
      graph.addDependency(name, dep);
    } else if (typeof dep === 'object') {
      _recursiveDeps(graph, name, deps[key]);
    }
  });
}
function _recursiveDeps ( graph , name , deps ) { return Object . keys ( deps ) . forEach ( ( key ) => { const dep = deps [ key ] ; if ( PLUGIN . test ( dep ) ) { return ; } if ( typeof dep === 'string' ) { if ( ! graph . hasNode ( dep ) ) { graph . addNode ( dep ) ; } graph . addDependency ( name , dep ) ; } else if ( typeof dep === 'object' ) { _recursiveDeps ( graph , name , deps [ key ] ) ; } } ) ; }
Add recursive dependencies to dependency graph
@param  {DepGraph} graph
@param  {String} name - current node name
@param  {Object} deps - dependency map
@private
Add recursive dependencies to dependency graph