Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Import lodash.merge to minimize build size.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorreece committed Dec 21, 2022
1 parent 231370c commit c282757
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"webpack-cli": "5.0.1"
},
"dependencies": {
"lodash": "4.17.21"
"lodash.merge": "4.6.2"
}
}
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import _ from "lodash";
import merge from "lodash.merge";
import init from "./init";
import authenticate from "./authenticate";
import { modalSelector, iframeContainerSelector } from "./selectors";
Expand Down Expand Up @@ -155,7 +155,7 @@ const setIframe = (
Object.entries(options).forEach(([key, value]) => {
if (key in state) {
if (state[key] instanceof Object) {
state[key] = _.merge(state[key], value);
state[key] = merge(state[key], value);
} else {
state[key] = value;
}
Expand Down

0 comments on commit c282757

Please sign in to comment.