title: How to "remove"/"change" some require(...) calls when using browserify?
body: <p>I have app written in node.js that requires some npm modules (react, react-router and others). When I run browserify on it, then all npm modules are "injected" to the bundle.js file. What I want is to provide distribution for bower that won't include react and react-router dependencies in bundle.js file, because they can be referenced as dependencies in bower.json.</p>
  
  <p>app.js:</p>
  
  <pre><code>var React = require('react')
  React.render(...)
  </code></pre>
  
  <p>In bundle.js react is injected into it along with app.js</p>
  
  <p>I need bundle.js that will not contain react and will assume that it is available in global (window) scope.</p>
  
  <p>bundle.js:</p>
  
  <pre><code>React.render(...)
  </code></pre>
  
  <p>or something like this:</p>
  
  <pre><code>var require = function(name){ return window[name] }
  var React = require('react')
  React.render(...)
  </code></pre>
  
  <p>So basically I want to tell browserify that SOME of the modules can be found in <code>window</code> scope and don't have to be injected in to the bundle.js...</p>