Bundle size, moment library
This library uses 'moment' which is half of my bundle size. What can I do? Im new to react and know little about dependencies.
If you use webpack to create your bundle, you can remove unused moment.js locales using context replacement plugin. This will decrease moment.js size by ~400KB.
Add something like this to your plugins option in webpack.config:
new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /ru/)
Moment.js was removed in #1527, starting v2.0.0, this package doesn't use Moment anymore.
I don't know where to put this but I'm using version 2.0.0 and this package still increase my bundle size from 8 KB to 147KB using webpack production build.