code: function(a,dest){
  			var result = [];
  			//console.log(a);
  			var moduleName;
  			var outputFile= path.resolve(String(dest));
  			var destRoot;
  			a.forEach(function(item){
  				for(var i in kmc._config.pkgs){
  					if(item.indexOf(i) === 0){
  						moduleName = i;
  						break;
  					}
  				}
  				// h5-test/widgets/calendar/index => /widgets/calendar/index
  				var tname = item.replace(new RegExp('^'+moduleName,'i'),'');
  				if(outputFile.indexOf(item)){
  					destRoot = outputFile.replace(tname,'').replace(/\.js$/i,'');
  					return false;
  				}
  			});
  			a.forEach(function(item){
  				for(var i in kmc._config.pkgs){
  					if(item.indexOf(i) === 0){
  						moduleName = i;
  						break;
  					}
  				}
  				// h5-test/widgets/calendar/index => ./widgets/calendar/index
  				var rpath = item.replace(new RegExp('^'+moduleName,'i'),'.');
  				if(!/\.(js|css)$/.test(rpath)){
  					// 没有后缀，默认是js文件
  					rpath += '.js';
  				}
  				//console.log('xxxx'+dest);
  				result.push(path.resolve(destRoot,rpath));
  			});
  			return result;
  		}
docs: added by jayli 2014-10-2 从依赖的文件目录数组得到绝对地址数组