-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Emoji after build #2488
Comments
I will create repo to reproduce |
Here we go https://github.com/crabicode/create-react-app-emoji OK : FAIL : |
Will do diff soon, but for now I have to download the |
production -> Seems like some bits got missed... any ideas? Please see diff image |
Tagging as needing investigating by a motivated contributor. |
seen a similar issue in this iamcal/js-emoji#46 it's related to UglifyJS. The solution for that issue is to add |
@viankakrisna will you send a PR for that? |
@viankakrisna I also have an issue related to regex which I feel is caused by the uglifier. To get around I need to pass extra build args like |
@tbillington It's also possible by sending a PR that we can merge 😉 |
Fixed by #2596. |
Fixed in 1.0.8. Please verify. |
@gaearon, Fixed & working like a charm. Thank you! |
Just to report back about this behaviour, our build grew from 530 KB to 539 KB because of this change. There is no way 9 KB worth of emoji or regex in our code. Maybe it's worth looking into a bit "softer" choice as growing 9 KB simply because of this emoji very much edge case seems like a waste of bandwidth. |
OK, just did an a every occurence of So I'd say that this option is quite buggy right now and is changing a lot of unneeded characters. Have a look at real world results on your web apps to see how much it affects you. In my case it's 9 KB of useless escaping, so I'll keep this off. |
@hyperknot can you please open a new issue with the contents of your last two messages? This seems pretty problematic! |
Thanks! |
Not sure if this relates to emojione devs, but
We are using emojione lib to replace unicode emoji with svg/png images.
We ran into the problem when we run
npm run build
.after the build, emojione fails to match emoji unicodes and stops working completely.
"☺️ " OK both dev & prod environments
"😀" FAIL in prod env but OK in dev
May that be a problem due extreme uglifying or anything else I am missing?
Thanks in advance.
PS: using latest version of create react app and emojione. We
The text was updated successfully, but these errors were encountered: