Hacker News new | ask | show | jobs
by jwilber 1836 days ago
You can also just import it from d3-scale.
1 comments

Yeah, I know.

I am probably being unreasonable; but it's kind of nice to be able to have a single third-party dependency out of which you can pick what you need at the moment, rather than a host of small third-party dependencies. Kind of like lodash, from which you can at least import individual functions (import merge from 'lodash/merge') rather than installing all those functions as individual packages.

I agree with you and wish that were an option, but I do think most build tools will tree shake for you nowadays.