mathiasbynens / emoji-regex

A regular expression to match all Emoji-only symbols as per the Unicode Standard.
https://mths.be/emoji-regex
MIT License
1.73k stars 174 forks source link

Create es build for es6 import/export 🏂 #37

Closed mesqueeb closed 1 year ago

mesqueeb commented 6 years ago

https://github.com/mathiasbynens/emoji-regex/issues/36

mesqueeb commented 6 years ago

I'm not sure what the travis error is...

henrikra commented 5 years ago

I am using this with React Native and I am able to import this library just fine like this: import emojiRegex from 'emoji-regex'

So I don't really understand why this PR is needed 🤷‍♂️

jorgecasar commented 5 years ago

Thanks @mesqueeb!

@henrikra you can because react native transpile the code. But you couldn't do that using only the platform. ES modules is supported in most browsers (80.79%) and you can use it without webpack, rollup or whatever.

Pika project explain very well the issue: https://www.pikapkg.com/about/

mathiasbynens commented 1 year ago

Fixed by #99.