lundi 25 mai 2015

Emberjs resolver, amd and non-amd modules

I'm trying to use alertify with Emberjs. Thats how it is exported.

// AMD and window support
if (typeof define === "function") {
    define([], function () { return new Alertify(); });
} else if (typeof global.alertify === "undefined") {
    global.alertify = new Alertify();
}

I have put this line to Brocfile.js

app.import('./bower_components/http://ift.tt/1x4kdZh');

But it thinks that it is AMD and to sum up I cant use it.

How should I handle it?




Aucun commentaire:

Enregistrer un commentaire