3 ms·
You can also just import it from d3-scale.
by jwilber 5y ago
You can also just import it from d3-scale.
- azangru 5y agoYeah, 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.
- jwilber 5y agoI agree with you and wish that were an option, but I do think most build tools will tree shake for you nowadays.