graphlib icon indicating copy to clipboard operation
graphlib copied to clipboard

Reduce heavy dependencies

Open fabiospampinato opened this issue 5 years ago • 3 comments

I see the entirety of lodash is being imported, while only a handful of its methods are being used.

Importing only the required methods would be beneficial to bundle size.

fabiospampinato avatar Jun 04 '19 01:06 fabiospampinato

I agree with that! I think it is crucial if the library is used in a front-end app.

crushjz avatar Oct 30 '19 09:10 crushjz

https://github.com/zmitry/graphlib Check this out, it doesn't have this issue.

zmitry avatar Nov 23 '19 22:11 zmitry

A PR exists to address this: https://github.com/dagrejs/graphlib/pull/118

darscan avatar Feb 09 '21 17:02 darscan

Lodash is no longer a dependency for graphlib. As I get to it, I'm removing it from the rest of the libraries.

rustedgrail avatar Mar 03 '23 14:03 rustedgrail