Using JS Module with RequireJS

Re: Using JS Module with RequireJS

by Andrew Lyons -
Number of replies: 0
ምስሊ ናይ Core developers ምስሊ ናይ Moodle HQ ምስሊ ናይ Particularly helpful Moodlers ምስሊ ናይ Peer reviewers ምስሊ ናይ Plugin developers ምስሊ ናይ Testers
Hi Aina,

It looks like Sentiment is a NodeJS module, and is not suitable for the browser. It's also using the CommonJS format, which I don't think we currently support, though it's a long time since I've had any need to try this so I may be wrong.

It does look like it's a fairly small library and it would be quite easy to create an ESM using the same built data (build/emoji.json), or to transpile it in some way.

Best wishes,

Andrew