I\'m considering adopting browserify for some of my projects, but would like to make sure that others don\'t have to use browserify if they want to use the (bundled) code. The o
Why not just wrap the entire thing with a closure and pass exports as a parameter?
exports
(function (exports) { // code here // ... exports.foo = bar; })(exports || this);
This way it will also export it to WebWorker scope and other 'windowless' environments.