Skip to content

Commit

Permalink
fix: allow for require('deepmerge').default
Browse files Browse the repository at this point in the history
This will make deepmerge work when Webpack builds are supported. It’s an alternative solution to removing the es build altogether (TehShrike#124)
  • Loading branch information
gr2m authored Dec 1, 2018
1 parent 0f5efc8 commit 2c6c4ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ deepmerge.all = function deepmergeAll(array, options) {
}

module.exports = deepmerge
module.exports.default = deepmerge // require('deepmerge').default will fix bundle problems with Webpack

0 comments on commit 2c6c4ca

Please sign in to comment.