As you can see on Bundlephobia, the package d3-array currently comprises 40% of the total size of react-compound-slider! It's not the heaviest thing in the world but still, lightening the load is never a bad thing.
d3-array is used exactly once: its ticks function is used here
|
import { ticks } from 'd3-array'; |
I wonder if you'd consider extracting just the ticks function so the rest of d3-array doesn't need to be included?
https://github.com/d3/d3-array/blob/master/src/ticks.js
As you can see on Bundlephobia, the package
d3-arraycurrently comprises 40% of the total size ofreact-compound-slider! It's not the heaviest thing in the world but still, lightening the load is never a bad thing.d3-arrayis used exactly once: itsticksfunction is used herereact-compound-slider/src/scales/LinearScale.ts
Line 1 in b24286d
I wonder if you'd consider extracting just the
ticksfunction so the rest ofd3-arraydoesn't need to be included?https://github.com/d3/d3-array/blob/master/src/ticks.js