lib/build/dependencies.js
function buildMap() {
    var dependencies = self.build.dependencies = {};
    var cacheTime = self.cache.stats;
    var buildTime = self.build.mtime;

    Object.keys(cacheTime).forEach(function (filepath) {
      buildTime[filepath] = cacheTime[filepath].getTime();
    });

    // deep resolve all dependencies
    self.build.dirMap.forEach(function (filename) {
      var list = [];

      // the result array will be filled by his function
      deepResolve(self, filename, list);

      // dry result array
      var result = dependencies[filename] = [];
      var i = list.length;
      while(i--) {
        if (result.indexOf(list[i]) === -1) {
          result.push(list[i]);
        }
      }
    });
  }
function buildMap() {
    var dependencies = self.build.dependencies = {};
    var cacheTime = self.cache.stats;
    var buildTime = self.build.mtime;

    Object.keys(cacheTime).forEach(function (filepath) {
      buildTime[filepath] = cacheTime[filepath].getTime();
    });

    // deep resolve all dependencies
    self.build.dirMap.forEach(function (filename) {
      var list = [];

      // the result array will be filled by his function
      deepResolve(self, filename, list);

      // dry result array
      var result = dependencies[filename] = [];
      var i = list.length;
      while(i--) {
        if (result.indexOf(list[i]) === -1) {
          result.push(list[i]);
        }
      }
    });
  }
function buildMap ( ) { var dependencies = self . build . dependencies = { } ; var cacheTime = self . cache . stats ; var buildTime = self . build . mtime ; Object . keys ( cacheTime ) . forEach ( function ( filepath ) { buildTime [ filepath ] = cacheTime [ filepath ] . getTime ( ) ; } ) ; // deep resolve all dependencies self . build . dirMap . forEach ( function ( filename ) { var list = [ ] ; // the result array will be filled by his function deepResolve ( self , filename , list ) ; // dry result array var result = dependencies [ filename ] = [ ] ; var i = list . length ; while ( i -- ) { if ( result . indexOf ( list [ i ] ) === - 1 ) { result . push ( list [ i ] ) ; } } } ) ; }
rebuild dependency tree
rebuild dependency tree