johnjbarton/q-comm — comment on commit 33e7dc90b4f1a5d5216c06a7f97165aa2625e42f
File:  line 0
By johnjbarton:

I don't know about npm. The embedding (which I've done a lot) has the lib/lib/lib problem, multiple copies of the project etc).
Is there some way to equate "project root" and "node_modules"? Then in browser land the server maps project root to some baseURL and everything is a peer under that. In node-land everything would be a peer under node_modules. (FWIW then require js use would be simpilfied on the browser case: always set your paths to <../ times you .html distance from root> + )