code: function(module) {
  			if (!module) {
  				return;
  			}
  
  			var file = fileByModules(module);
  			Array.prototype.push.apply(seen, file.modules);
  			file.requires.forEach(function(module) {
  				// Ignore resoled modules and dependencies in own file
  				if((_.indexOf(resolved, module) < 0) &&
  				   (_.indexOf(file.modules, module) < 0)) {
  					// Catch circular dependencies
  					if(_.indexOf(seen, module) < 0) {
  						resolve(module);
  					}
  					else {
  						grunt.fail.fatal('Circular dependency detected:\n\t' +
  						                 file.modules.join(', ') + ' depend on ' +
  						                 module, 1);
  					}
  				}
  			});
  			Array.prototype.push.apply(resolved, file.modules);
  		}
docs: Resolves a module and its dependencies