Skip to content

Commit

Permalink
Update cacheDependency to use the existing object rather than copy it.
Browse files Browse the repository at this point in the history
This should close gobblejs#6
  • Loading branch information
Kevin Thompson committed Oct 21, 2015
1 parent 23bcbeb commit 8b35061
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@ function concat ( stream, callback ) {
});
}

function cacheDependency ( cache, originalDep, inputdir ) {
var dep = {};
Object.keys( originalDep ).forEach( function ( key ) {
dep[ key ] = originalDep[ key ];
});

function cacheDependency ( cache, dep, inputdir ) {

dep.basedir && ( dep.basedir = dep.basedir.replace( inputdir, '@' ) );
dep.id = dep.id.replace( inputdir, '@' );
dep.file = dep.file.replace( inputdir, '@' );
Expand Down

0 comments on commit 8b35061

Please sign in to comment.