ritz078 / embed-js

🌻 A lightweight plugin to embed emojis, media, maps, tweets, code and more. ✨
https://codesandbox.io/s/Wp5OlNMn
MIT License
1.27k stars 89 forks source link

Unexpected token export loading embed.es2015.js #237

Closed dsozzi closed 7 years ago

dsozzi commented 7 years ago

Loading the embed.es2015.js source it returns the following error

embed.es2015.js:1795 Uncaught SyntaxError: Unexpected token export

You can see the error in console using the following fiddle:

https://jsfiddle.net/be86syoe/

ritz078 commented 7 years ago

It won't run until you build it using something like webpack. You will have to use ES5 version embed.js to run in jsfiddle.

dsozzi commented 7 years ago

You are right, my bad, sorry.