Skip to content

Commit

Permalink
Merge pull request #509 from xzyfer/fix/option-leakage
Browse files Browse the repository at this point in the history
Prevent options leaking between compilations
  • Loading branch information
xzyfer authored Jun 15, 2016
2 parents 05f4cdf + 035b759 commit 568b13b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var gutil = require('gulp-util');
var through = require('through2');
var assign = require('object-assign');
var clonedeep = require('lodash.clonedeep');
var path = require('path');
var applySourceMap = require('vinyl-sourcemaps-apply');

Expand Down Expand Up @@ -34,7 +34,7 @@ var gulpSass = function gulpSass(options, sync) {
}


opts = assign({}, options);
opts = clonedeep(options || {});
opts.data = file.contents.toString();

// we set the file path here so that libsass can correctly resolve import paths
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
},
"dependencies": {
"gulp-util": "^3.0",
"lodash.clonedeep": "^4.3.2",
"node-sass": "^3.4.2",
"object-assign": "^4.0.1",
"through2": "^2.0.0",
"vinyl-sourcemaps-apply": "^0.2.0"
},
Expand Down

0 comments on commit 568b13b

Please sign in to comment.