by SomeCallMeTim · 10y ago · 0 comments
Ended up writing my own mini-routine instead. If I ever need enough of Lodash to care I'll just import the whole thing, which is the only way to get lazy evaluation anyway.
It also offers modules inside the primary package now, e.g. require('lodash/chunk').
There's babel and webpack plugins to make cherry-picking and bundle size optimizations a breeze too.
Back to plan A: Don't use Lodash in client code unless I'm willing to use the whole thing (so that I can get the chaining optimizations, which cherry picking doesn't support anyway).