Skip to content
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

Improve support for Internet Explorer #92

Merged
merged 3 commits into from Jun 23, 2017
Merged

Improve support for Internet Explorer #92

merged 3 commits into from Jun 23, 2017

Conversation

sonicdoe
Copy link

Certain ES2015+ features (such as for..of) require the use of Babel’s Polyfill or Runtime transform. Since Internet Explorer 11 doesn’t support for..of, Emoji Mart doesn’t work there (see #23).

To resolve this, I have included Babel’s transform-runtime plugin. However, since it doesn’t work with instance methods, I have replaced Array.prototype.fill() and Array.prototype.find() manually.

I haven’t tested all features (yet) but I can confirm that the basic functionality of Emoji Mart now works in IE 11.

Regarding bundle size: dist/emoji-mart.min.js (gzipped) increases by 8 % (98 KB → 106 KB).

@EtienneLem EtienneLem merged commit b90ca82 into missive:master Jun 23, 2017
@sonicdoe sonicdoe deleted the ie-support branch June 23, 2017 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants