I have a relatively large app built with Backbone and Marionette. That means that at the top of every file I have something like:
var _ = require('underscore');
var $ = require('jquery');
var Backbone = require('backbone');
Backbone.$ = $;
var Marionette = require('backbone.marionette');
I know that part of the idea of Browserify is that there are no globals but this seems like a lot of unnecessary boilerplate. What I'd like is to have jQuery, Backbone, Underscore, and Marionette load a global variables as they normally do and just assume everywhere in that they are available. Is there a way to do this in browserify?