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

231 views Asked by At

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?

0

There are 0 answers