@oskar wrote:
Hi, how do you deal with NPM modules that require DOM?
I'm trying to use fastboot on a website but a gallery plugin naturally fails without a DOM. I've seen ember-cli addons doing like this https://github.com/gmurphey/ember-masonry-grid/commit/c1cae5570d1e42285906a7fb7fae576374134a21.
Ideally I want to avoid creating (and maintaining) a wrapper addon and keep importing the plugin from NPM using ember-browserify.
What is a good way to deal with this kind of issue?
Posts: 1
Participants: 1