I am writing an Ember.js application using Ember Cli and I want to include a non-bower dependency - basically a dependency on my vendor folder.
The instructions on this occasion tell me to add the following line to my ember-cli-build.js :
app.import('vendor/dependency-to-include.js');
This will work fine with normal ES5 setup, but what if I want to add a dependency written in ES6?
Now it just delivers it to the browser without changes, which causes an error, for example:
Uncaught SyntaxError: Unexpected reserved word
because my ES6 dependent dependency uses the following syntax:
import Util from './util
I assume I need to tell ember-cli-build to pass this particular dependency before passing it to the browser, but how can I do this?
thanks
source share