Closed johnborges closed 7 years ago
After some testing I came up with this:
requirejs.config({
baseUrl: "js/",
// path mappings for module names not found directly under baseUrl
paths: {
aws: 'libs/aws-sdk',
ama: 'libs/aws-sdk-mobile-analytics'
},
// non-AMD scripts
shim: {
'aws': {
exports: 'AWS'
},
'ama': {
deps: ['aws'],
exports: 'AMA'
}
}
});
Is there a recommended way to use this SDK with requireJS?