I recently discovered that all of the lodash.assign, lodash.isstring, lodash.isobject, etc. packages I've been using were larger than I would have expected, and take up quite a bit of space in my webpack bundles, and that I could save plenty of space by requiring lodash/assign, lodash/isString, etc. instead. It seems like all libraries that depend on modular build packages should make this switch. Deprecating would encourage library authors to get the ball rolling on this change. (I have my own jscodeshift script I've been using to make this change to my own packages and would be happy to release it publically).
Or is there something I misunderstand? Do the modular build packages really have any advantages over lodash anymore?
I recently discovered that all of the
lodash.assign,lodash.isstring,lodash.isobject, etc. packages I've been using were larger than I would have expected, and take up quite a bit of space in my webpack bundles, and that I could save plenty of space by requiringlodash/assign,lodash/isString, etc. instead. It seems like all libraries that depend on modular build packages should make this switch. Deprecating would encourage library authors to get the ball rolling on this change. (I have my ownjscodeshiftscript I've been using to make this change to my own packages and would be happy to release it publically).Or is there something I misunderstand? Do the modular build packages really have any advantages over
lodashanymore?