Skip to content

Commit

Permalink
Fix: prevent global option from changing when merging
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowrowe committed Jan 27, 2016
1 parent cd13bf1 commit f64cfab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function (assetsOrigin) {

var pkg = pkgs[pkgName];
pkg.name = pkgName;
var option = util.merge(optionGlobal, util.extend({
var option = util.merge(clone(optionGlobal), util.extend({
mode: ['copy', -1],
hash: [0, -1],
export: [true, -1]
Expand Down

1 comment on commit f64cfab

@swaylq
Copy link
Collaborator

@swaylq swaylq commented on f64cfab Jan 27, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good!

Please sign in to comment.