from browser-resolve 1.0.1 index.js
// paths is mutated
// load shims from first package.json file found
function load_shims(paths, cb) {
// identify if our file should be replaced per the browser field
// original filename|id -> replacement
var shims = {};
(function next() {
var cur_path = paths.shift();
if (!cur_path) {
return cb(null, shims);
}
var pkg_path = path.join(cur_path, 'package.json');
fs.readFile(pkg_path, 'utf8', function(err, data) {
that seems to only happen on this first
_resolve
browserify/index.js
browser-resolve/index.js
browser-resolve/index.js