needim / wdt-emoji-bundle

Slack like emoji picker with apple/ios, twitter/twemoji, google, emojione, facebook, messenger emoji support
http://ned.im/wdt-emoji-bundle
MIT License
419 stars 87 forks source link

Fixed support for AMD/RequireJS & module.exports #22

Closed Redsandro closed 7 years ago

Redsandro commented 7 years ago

This way it still works manually, but also modular through AMD or node.

Would prevent things like https://github.com/needim/wdt-emoji-bundle/issues/10 when used modular.

Redsandro commented 7 years ago

For node (e.g. using this server-side because of reasons) you still need to manually load js-emoji or emoji.min.js or manually work around by creating node_modules/js-emoji/index.js:

module.exports = "path/to/bower/js-emoji"

and copy package.json from js-emoji to that directory, until https://github.com/iamcal/js-emoji/issues/28 is fixed. When fixed, you can also add the dependency to package.json.

needim commented 7 years ago

Thanks @Redsandro !