[–] pastelsky 6y ago ↗ Congratulations on the release. It still surprises me that 60% of chart.js's weight comes from moment.https://bundlephobia.com/result?p=chart.js@2.8.0 [–] benmccann 6y ago ↗ You can use chart.js without moment. You do not need any date library if you're not using the time scale. If you are using the time scale you can also choose date-fns or luxon as lighter weight alternatives. [–] [deleted] 6y ago ↗ (comment deleted)
[–] benmccann 6y ago ↗ You can use chart.js without moment. You do not need any date library if you're not using the time scale. If you are using the time scale you can also choose date-fns or luxon as lighter weight alternatives. [–] [deleted] 6y ago ↗ (comment deleted)
3 comments
[ 2.8 ms ] story [ 18.2 ms ] threadhttps://bundlephobia.com/result?p=chart.js@2.8.0