substack/node-browserify — pull request #552 by Volune (2013-12-13 13:24:49+00:00)
Title: Allow to replace or decorate the call to browser-resolve

It may be useful to be able to replace the call to browser-resolve.

For example, aliases can be handled this way:
```js
var aliases = {};
var resolve = require('browser-resolve');
// [...]
browserify({
resolve: function(id, opts, cb) {
id = aliases[id] || id;
resolve(id, opts, cb);
}
})
```