Im doing it like this:
require.config({
baseUrl: '/ui/js',
paths: {
jquery: 'modules/libs/jquery-1.10.2',
tweenmax: 'modules/vendor/greensock-js/TweenMax'
},
shim: {
jquery: {
exports: 'jQuery'
},
tweenmax: {
exports: 'TweenMax'
}
});
define([
'jquery',
'tweenmax'
], function($, TweenMax) {
console.log(TweenMax);
});