mardi 27 décembre 2016

How to include something from NPM with aliasing in your Ember CLI build?

I'm trying to include an NPM package (this one), that has a dependency that needs aliasing to get the browser version (as described here) in my ember-cli build. In the official documentation, it's not really clear how this can be done.

Ideally, this would be something like this:

app.import('joi-browser', { alias: 'joi' });
app.import('edzif-validation');

But that does not work. Does anyone have a clue on how to coax the ember-cli/broccoli setup to do this?




Aucun commentaire:

Enregistrer un commentaire