cli-ux icon indicating copy to clipboard operation
cli-ux copied to clipboard

Use of lodash results in large bundle size

Open ryanwilsonperkin opened this issue 6 years ago • 1 comments

Hi! Loving the work that's gone into oclif, we've just started using it heavily for a CLI we intend to distribute to developers.

One thing I've noticed is that when pulling in @oclif/cli-ux as a dependency to do things like spinners, that my bundle size grows significantly (an additional ~5Mb) due to the use of lodash. Would you be willing to accept a PR that removed the few uses of lodash in favour of vendoring in the needed functionality?

ryanwilsonperkin avatar Dec 17 '18 21:12 ryanwilsonperkin

I'm open to the idea. In general I've tried to keep the number of dependencies down for oclif so this seems like a natural progression of that.

jdx avatar Dec 17 '18 21:12 jdx