Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
fix: PluginMixin#merge
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jul 22, 2018
1 parent f9a3ef4 commit af9b7a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Bundle/PluginMixin.coffee
Expand Up @@ -56,8 +56,7 @@ mixin =
if obj and obj.constructor == val.constructor
merge obj, val
else if arguments.length is 2
obj = @get path.slice(0, -1), {}
obj[path[path.length - 1]] = val
setPath @_config, path, val
else
throw TypeError 'Cannot merge that value: ' + (JSON.stringify(value) or Object::toString.call value)
return this
Expand Down

0 comments on commit af9b7a1

Please sign in to comment.