node.js - nodejs module depedendencies with different versions -


i have following confusion regarding module dependencies in nodejs, lets have following dependency structure modulea (dependent on version 1 of module c) moduleb (dependent on version 2 of module c)

now under normal circumstances when each module has own sub directory modules (a , b) can identity sub modules versions appropriately, if use webpack generates 1 single file. how versions handled in such scenario?

on same note how flatten-packages work when comes different versions?

webpack include both versions of module c in bundle. modules , b use versions 1 , 2, respectively.


Comments

Popular posts from this blog

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

ruby on rails - ActiveRecord order not working -