Skip to content

Commit

Permalink
Fix mutating options
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 25, 2021
1 parent 0a36d84 commit fe51be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function unified() {

if (entry) {
if (plain(entry[1]) && plain(value)) {
value = extend(entry[1], value)
value = extend(true, entry[1], value)
}

entry[1] = value
Expand Down

1 comment on commit fe51be2

@phuctm97
Copy link

Choose a reason for hiding this comment

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

Love it, thank you @wooorm!

Please sign in to comment.