-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce production bundle size #156
Comments
It would be great if there was a way to ignore parts of the data file similar to how when using moment js you can ignore locales if you don't need them using |
@mattbucci I have customized emoji-mart plugin as per my requirement (Mr Emoji) and published on NPM, hoping that, this might be useful to someone. :) |
@Dipen-Dedania Thanks a lot. I've managed to reduce the bundle size significantly |
@mattbucci Interesting. We could have sets data in different files and import them in the main data file while handling non-existing files. |
I needed an emoji picker so I implemented this for Angular 4+. Took some time to slim down the emoji data while keeping functionality and all icon sets. https://typectrl.github.io/ngx-emoji-mart/ Its broken into two modules, one for the emoji component w/ data and one for the "emoji-mart".
The easiest area to shrink was changing the emoji data, especially the skin_variations. |
Does anybody know how to deal with create-react-app? I don't want to reject . Thanks alot |
@viiiprock https://www.npmjs.com/package/mr-emoji will work with create-react-app |
@Dipen-Dedania great work it will save 350kb 👍🏻 |
I consider this largely fixed, especially given the separate I also load |
@Dipen-Dedania does support only apple emojis, it would be better if it allows the native emojis of the device |
First of all, great work with the plugin. It's working perfectly fine. The issue I'm facing right now is, my bundle.js is got so big (2.5MB). I have created my ReactJS application with create-react-app and I'm creating my production build with
npm run build
So I was trying to figure out the issue behind the size issue. And I came across with one Medium article and I tried source-map-explorer plugin. And I was completely shocked by seeing a result that emoji-mart is taking ~600kb.
Any suggestion on how to improve this?
The text was updated successfully, but these errors were encountered: