Uncaught ReferenceError: _ is not defined with Browserify <p>I have a <code>Backbone</code> project that requires a fair amount of shimming for browserify. </p> <p>I have set it up so that all of my underscore files are concat'd into one file <code>templates.js</code></p> <p>In turn I have to shim this into my project:</p> <p><strong>package.json</strong></p> <pre><code>"dependencies": { ..... "underscore": "^1.7.0" ..... } ...... "browserify": { "transform": [ "browserify-shim" ] }, "browser": { "//": "SP Core Components", "jst": "./jst/templates", }, "browserify-shim": { "jst" : {"depends": "underscore"} } ..... </code></pre> <p><strong>init.js</strong></p> <pre><code> var JST = require('jst'); var jsonobject = {}; JST.staffOverview(jsonobject) </code></pre> <p>This will generate the following when trying to call :</p> <pre><code> Uncaught ReferenceError: _ is not defined </code></pre> <p>So my question is, how can I set <code>underscore</code> as a dependency of <code>jst</code></p>