I am using the current stable release of both require.js and jQuery and I am currently including jQuery like this
requirejs.config({
paths: {
'jQuery': 'vendor/jquery',
}
});
require(['jQuery'], function(jQuery) {
log(jQuery); // working
});
What I don't get is that I don't really need to explicitly give back jQuery, as this will still work (also in other modules):
require(['jQuery'], function( // nothing here ) {
log(jQuery); // working
});
Now I'm not sure if this is the correct way of doing it, also because using the $ dollar sign for reference to jQuery doesn't work!