lib/compile.js
function remapLoadRecord(load, mapFunction) {
    load = extend({}, load);
    load.name = mapFunction(load.name, load.name);
    var depMap = {};
    Object.keys(load.depMap).forEach(function(dep) {
      depMap[dep] = mapFunction(load.depMap[dep], dep);
    });
    load.depMap = depMap;
    return load;
  }
function remapLoadRecord(load, mapFunction) {
    load = extend({}, load);
    load.name = mapFunction(load.name, load.name);
    var depMap = {};
    Object.keys(load.depMap).forEach(function(dep) {
      depMap[dep] = mapFunction(load.depMap[dep], dep);
    });
    load.depMap = depMap;
    return load;
  }
function remapLoadRecord ( load , mapFunction ) { load = extend ( { } , load ) ; load . name = mapFunction ( load . name , load . name ) ; var depMap = { } ; Object . keys ( load . depMap ) . forEach ( function ( dep ) { depMap [ dep ] = mapFunction ( load . depMap [ dep ] , dep ) ; } ) ; load . depMap = depMap ; return load ; }
create a new load record with any necessary final mappings
create a new load record with any necessary final mappings