title: Where is jquery getting required from? - browserify - browserify-shim
body: <p>I am building a project with <code>broweserify</code>, <code>jquery</code> and <code>jquery-ui</code>.  All libs were pulled down with <code>npm</code>.  Here is how I am using my <code>browserify-shim</code> to pull in <code>jquery' and 'jquery-ui</code>:</p>
  
  <pre><code>  "browserify": {
      "transform": [ "browserify-shim" ]
    },
    "browser": {
      "jquery": "./node_modules/jquery/dist/jquery.js",
      "jquery-ui": "./node_modules/jquery-ui/jquery-ui.js"
    },
    "browserify-shim": {
      "jquery": "$"
    }
  </code></pre>
  
  <p>Everything works like it should, but I look at <code>jquery-ui.js</code> and the first line of code is</p>
  
  <pre><code>var jQuery = require('jquery');
  </code></pre>
  
  <p>How is this line of code being resolved?  When I put a <code>debugger</code>statement after this, <code>jquery</code> is always resolved.  I even changed the name of <code>jquery</code> in my shim and the it still resolved.  How is that happening?</p>