Remove lodash and use our own utils#535
Conversation
|
@ZAKdev Let me know if this change works with your heatmaps. I would really prefer you to make a PR on its own but I can go either way. |
| option => instance.set(option, options[option]), | ||
| Object.keys(options || {}) | ||
| ); | ||
| Object.keys(options).map(option => instance.set(option, options[option])); |
There was a problem hiding this comment.
I don't know why but i am not able to run entire project, so everything looks good to me just map over an empty object as well if there is no options, like below.
Object.keys(options || {}).map(option => instance.set(option, options[option]));
There was a problem hiding this comment.
@ZAKdev Done, instead of doing what you said I've set a default value for the parameter. LMK How that works. I am merging this as for now.
5419725 to
77906a7
Compare
|
@itsmichaeldiego, i can't push any of my code, seems like not having access. |
|
@ZAKdev sorry, push to where? |
|
@itsmichaeldiego, i added weight in my heapmap implementation but i am not able to push my code to this repo. Do we have any slack channel where we can comminicate or via email, here is my email zainahmedkhan@gmail.com |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |

This PR is just one proposal to use specific packages from lodash instead of importing the whole library.
I came across with the problem that we tried to remove lodash here: 670fadd#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R72 but we actually moved to devDependencies.
But accidentally, because it was there, @ZAKdev used
fpfrom lodash, as it was still in the devdependencies, in #441.After that, I also used isEmpty from lodash in #533
This increased the build size to 797kb standard and 201kb minified.
This PR decreases it to 140kb and 47.5kb minified.
Output: Size decreased by almost 4 times.
Prev:
Now: