jmreidy/grunt-browserify — pull request #29 by amiuhle (2013-04-22 17:44:24+00:00)
Title: Dynamic globals

Option to add provide custom global `process` and `Buffer` implementations, currently only via `grunt-browserify`:

```javascript
browserify: {
bundle: {
src: [],
require: ['mongodb', 'tcp_wrap-chromeify'],
dest: 'app/scripts/vendor/bundle.js',
ignore: 'node_modules/browser-resolve/node_modules/buffer-browserify/index.js',
options: {
globals: {
process: 'browser-resolve/builtin/process',
Buffer: 'buffer-browserify'
}
}
}
}
```

Needs substack/node-browserify#386 and substack/insert-module-globals#5 to work.

Working implementation here:
https://github.com/amiuhle/chrome-mongo-admin