tommoor / emojione-picker

A react emoji picker for use with emojione
http://tommoor.github.io/emojione-picker
MIT License
261 stars 61 forks source link

Selectively import from react-virtualized to reduce bundle size #70

Closed nolanlawson closed 7 years ago

nolanlawson commented 7 years ago

This PR reduces the bundle size of emojione-picker from 215524 bytes (216kB) min+gz to 149830 bytes (150kB) min+gz, a reduction of 30%. (I measured using npm run prepublish then browserify . | uglifyjs -mc | gzip -c | wc -c.)

This trick is described in react-virtualized's documentation.

tommoor commented 7 years ago

Nice, loving these smalls changes with a bug impact! I'll get this merged in with https://github.com/tommoor/emojione-picker/pull/71 today.