mardi 14 avril 2015

How to import non amd library ember-cli

I am using Ember-CLI and now I faced the problem of importing AmplifyJS in my project. I downloaded Amplify using Bower however the library is not in an ES6 format. Therefore, when I try to use it in my project, I simply can't import it.


Basically I would want to do:



import Amplify from amplify;

//use amplify here


Brocfile.js



app.import('bower_components/amplify/lib/amplify.js');


Since a lot of libraries are no in the ES6 format yet, my question is: "Is there a way to easily import or use ES5 librairies in ES6".


If not, what is the recommended way of doing that in Ember?





Aucun commentaire:

Enregistrer un commentaire