RobertMenke / rm-emoji-picker

A modern, ES2015 emoji picker and editor.
MIT License
78 stars 18 forks source link

Load without building webpack #45

Open k-timoshenko opened 6 years ago

k-timoshenko commented 6 years ago

Hi. Is there any way to load plugin just in browser without webpack? I'm trying:

var picker = new EmojiPicker();

but got EmojiPicker is not defined

I figure out, that lib is accessible via window.default, but anyway got error: (0 , g.default) is not a function in:

key: "_getWrapper", value: function () {
    return (0, g.default)('<span class = "emoji-char-wrapper ' + this.hover_color + '" data-name="' + this.full_name + '" data-category="' + this.category + '"></span>')
}
The-Don-Himself commented 6 years ago

+1 on this, from out looking it, rm-emoji-picker seems like the best out there, I just don't understand the dependency on webpack though, as a backend dev with modest frontend experience, it's been hard just getting this started in an existing Ember.js app.

tcha-tcho commented 6 years ago

👍 +1 , It is painful to use webpack. I'm thinking in rebuild this code to remove all this dependencies (including jQuery). Anyone?

bfic commented 6 years ago

Any ideas ?