I'm trying to send configuration parameters into my package's main.js file and it doesn't seem to be working. What am I doing wrong? Here's the files and path information
/config.js
require.config({
baseUrl : '../src',
config : {
'AAM' : {
get : null,
set : null
}
},
packages : [ 'AAM']
});
/src/AAM/main.js
require.config({
paths : {
AAMAsPermission : 'AAM/perms/asPermission'
}
});
// Start the main app logic.
requirejs(['AAMAsPermission'], function(AAMAsPermission) {
});
/src/AAM/perms/asPermission
define(['module'], function(module) {
module.config() // empty object. Why?
....
});
In /src/AAM/perms/asPermission, the object returned from module.config() is empty. Why?