Skip to content

Commit 6de6963

Browse files
committed
Replace lodash with lodash.merge
Single module should be smaller Signed-off-by: Jakub Juszczak <[email protected]>
1 parent 8271294 commit 6de6963

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"prepublish": "yarn run lint && yarn run test && yarn run build"
5858
},
5959
"dependencies": {
60-
"lodash": "^4.17.4"
60+
"lodash.merge": "^4.6.0"
6161
},
6262
"peerDependencies": {
6363
"chart.js": "^2.6.0",

src/helpers/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import merge from 'lodash/fp/merge'
1+
import merge from 'lodash.merge'
22

33
export function mergeOptions (obj, src) {
44
return merge(obj, src)

yarn.lock

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3538,6 +3538,10 @@ lodash.keysin@^4.0.0:
35383538
version "4.2.0"
35393539
resolved "https://registry.yarnpkg.com/lodash.keysin/-/lodash.keysin-4.2.0.tgz#8cc3fb35c2d94acc443a1863e02fa40799ea6f28"
35403540

3541+
lodash.merge@^4.6.0:
3542+
version "4.6.0"
3543+
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.0.tgz#69884ba144ac33fe699737a6086deffadd0f89c5"
3544+
35413545
lodash.mergewith@^4.0.0, lodash.mergewith@^4.6.0:
35423546
version "4.6.0"
35433547
resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.0.tgz#150cf0a16791f5903b8891eab154609274bdea55"
@@ -3554,7 +3558,7 @@ lodash@^3.8.0:
35543558
version "3.10.1"
35553559
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
35563560

3557-
lodash@^4.0.0, lodash@^4.0.1, lodash@^4.17.2, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.3.0, lodash@^4.5.0:
3561+
lodash@^4.0.0, lodash@^4.0.1, lodash@^4.17.2, lodash@^4.17.3, lodash@^4.2.0, lodash@^4.3.0, lodash@^4.5.0:
35583562
version "4.17.4"
35593563
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
35603564

0 commit comments

Comments
 (0)