Running into an issue when I run the RequireJS optimizer... I have the following defined in my main config file:
require.config({
config: {
bootstrap: {
autoload: true
}
},
...
}
Then in my bootstrap.js
file I do:
define(['module', 'app'], function (module, App) {
'use strict';
console.log(module.config().autoload);
...
});
But autoload
is undefined
:( The variable is available in the non-optimised version however.
I've tried this with other modules and other variables, but essentially no module config is being pushed through into the output file from Require's Optimizer.
Is this expected behaviour ?