I was using ember-browserify to find npm modules in my ember-cli apps, but for some reason it does not work for ember-cli addons.
So my question is: Is there another way to import npm modules into an ember-cli addon?
Edit:
So I couldn't import the npm module, but I found that the specific module I wanted to import is also a bower component, so I installed it as so and imported it via the index.js
like so:
included: function(app) {
this._super.included(app);
app.import('bower_components/dropzone/dist/dropzone.js');
}
and that worked. Doing this with the node_modules
was not possible. It sucks that it is so hard to import npm modules to an ember-cli addon.