I\'m using require.js to help organize my Backbone.js based application.
I\'m trying to figure out the right way to use a 3rd party javascript library that is not AM
The following should work with RequireJS 2.1.0+ assuming you've set up the paths correctly.
require.config({ shim: { 'underscore': { exports: '_' }, 'backbone': { deps: ['underscore','jquery'], exports: 'Backbone' }, 'backbone-tastypie': { deps: ['backbone'] } } );