packages/raven-js/Gruntfile.js
function AddPluginBrowserifyTransformer() {
    var noop = function(chunk, _, cb) {
      cb(null, chunk);
    };
    var append = function(cb) {
      cb(null, "\nrequire('../src/singleton').addPlugin(module.exports);");
    };
    return function(file) {
      return through(noop, /plugins/.test(file) ? append : undefined);
    };
  }
function AddPluginBrowserifyTransformer() {
    var noop = function(chunk, _, cb) {
      cb(null, chunk);
    };
    var append = function(cb) {
      cb(null, "\nrequire('../src/singleton').addPlugin(module.exports);");
    };
    return function(file) {
      return through(noop, /plugins/.test(file) ? append : undefined);
    };
  }
function AddPluginBrowserifyTransformer ( ) { var noop = function ( chunk , _ , cb ) { cb ( null , chunk ) ; } ; var append = function ( cb ) { cb ( null , "\nrequire('../src/singleton').addPlugin(module.exports);" ) ; } ; return function ( file ) { return through ( noop , / plugins / . test ( file ) ? append : undefined ) ; } ; }
custom browserify transformer to re-write plugins to self-register with Raven via addPlugin
custom browserify transformer to re - write plugins to self - register with Raven via addPlugin