Skip to content

Commit

Permalink
fix(src/index.js): clone the config {Object} on assignment instead …
Browse files Browse the repository at this point in the history
…of mutating it
  • Loading branch information
michael-ciniawsky committed Jul 10, 2018
1 parent 17f9621 commit 8669a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const rc = (ctx, path, options) => {
if (typeof config === 'function') {
config = config(ctx)
} else {
config = Object.assign(config, ctx)
config = Object.assign({}, config, ctx)
}

if (!config.plugins) {
Expand Down

0 comments on commit 8669a90

Please sign in to comment.