esnet / esnet/pond

Remove moment.js to improve bundle sizes

Open
#181 2 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
211
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Hi,

We noticed that including `moment.js` (via `pond` and `react-timeseries-charts`) in our application added 500kb to the minified bundle.
This one library doubled the total size of our application and has a performance impact on page load times.

There is a [thread over at moment](https://github.com/moment/moment/issues/3376) discussing this issue.
At the bottom of the comments there are some alternatives suggested, which I can't comment on, but seem to be much smaller in size.

How tightly are `pond` / `react-timeseries-charts` coupled to the specifics of `moment.js`? would you consider using another library in order to remove half a meg from the builds?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.