Skip to content

Removing the d3-array dependency? #133

Description

@pt8o

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions