Closed castevinz closed 4 years ago
Hi @adamkleingit, What do you think about this PR ? lodash-es is "tree-shakeable" compared to lodash, even if full bundle size is bigger...
We evaluated replacing lodash
with lodash-es
in our project, but based on these benchmarks, instead just blacklisted top-level imports from lodash
. We did not do our own comparison, but for projects using small numbers of lodash
functions, that apparently produces the smallest bundle sizes.
Thanks @KeithGillette for this benckmarks explanation... You can consider my PR useless or deprecated. I'll update my application to use Lodash by importing specifics methods instead of using lodash-es. Regards.
And sorry, I'm connected with my professional account, but it's me... castevinz = vcastelain ;)
Thanks for the PR @castevinz Closing this because we did this during the restructuring of the project.
This PR allows to load lodash-es needed functions instead of complete lodash library.