Closed tony closed 11 years ago
These changes broke compatibility with other "require" systems.
@mahnunchik
I need this to work, so I'm willing to keep swinging at it.
What require libraries need to be tested against in addition to requirejs and almond?
The library should support: 1) CommonJS (for example browserify in browsers) 2) exporting to global Backbone object (window.Backbone)
Tests of different "require" would be very useful
I have too much on my plate atm, I'm going to close PR in case someone else has the time to test UMD thoroughly.
What is the solution to this? Currently I can't use this for production as the combined js result throws this error.
uff, nobody got a solution yet? or a hack ? ;)
Hi, this may not be the best, but I had to manually do this to get backbone.iobind to play nice with AMD. Requirejs is picky about seeing
define
.Backbone UMD pattern taken from: https://github.com/thedersen/backbone.validation/blob/master/dist/backbone-validation-amd.js
With no
define()
I encounter the error:Uncaught Error: Module name "backbone.<moduleName>" has not been loaded yet for context: _. Use require([])