hypeserver / react-date-range

A React component for choosing dates and date ranges.
MIT License
2.58k stars 667 forks source link

Use babel-plugin-date-fns to reduce bundle size #429

Closed onionhammer closed 3 years ago

onionhammer commented 3 years ago

Put an x in the boxes that apply

Description

Reduces number of bundled date-fns functions to only the ones actually used, in the below case the size dropped by 10kb gzipped

image

Related Issue: #356

kamyar commented 3 years ago

@onionhammer I also added you as a collaborator. Given you have already opened a PR to contribute, in case you would be interested in getting involved more. 🚀 Obviously if you can not allocate time for the project feel free to decline the invite. :)

onionhammer commented 3 years ago

@kamyar Thanks! we do use this in our product so I may take you up on that

kamyar commented 3 years ago

We would definitely appreciate the extra help. 🤩 The original devs don't have enough time to give it the attention it deserves, and we discussed leaning on the power of open source and seeing if folks that use it might be interested in helping the project move forward. Please feel free to mention me or email me github@kamy.me anytime if you need something :) And thanks again for your contribution. 🚀