new strategy for gathering dependency inside and outside the browser