Access RequireJS path configuration
问题 I notice in the documentation there is a way to pass custom configuration into a module: requirejs.config({ baseUrl: './js', paths: { jquery: 'libs/jquery-1.9.1', jqueryui: 'libs/jquery-ui-1.9.2' }, config: { 'baz': { color: 'blue' } } }); Which you can then access from the module: define(['module'], function (module) { var color = module.config().color; // 'blue' }); But is there also a way to access the top-level paths configuration, something like this? define(['module', 'require'],