I know the situation will change with the next compiler iteration but I’m curios how you deal with NPM dependencies in your build when you target the browser?
Right now I usually just require
what I need in my .js
foreign files, do just spago build
and then use some bundler (I don’t need all the power of webpack so I use a combination of browserify and uglify) to bundle those common-js modules starting with output/Main/index.js into a single .js
Obviously this is somewhat dated I guess (and probably a bit stupid) - how do you deal with this?