I have non-AMD backbone, non-AMD underscore and non-AMD jquery in my project. I also have a lot of third party libraries that are not AMD compatible.
What is the best way of having them compile alongside AMD modules using r.js? Should I start wrapping all of them into AMD modules?
I ran r.js on a module I had which was using non-AMD libraries and underscore and backbone, it generated an output but in the output wherever there is a require("backbone") call, it returns undefined which I'm suspecting is because backbone is not registered as an AMD module.
At the same time something very strange to me is that if I do not run r.js and just run the website regularly using require.js loading, the following lines returns correct values even though they are not AMD modules:
var _ = require("underscore")
var Backbone = require("backbone")
I have those paths configured as aliases in my require.config.