title: Configuring modules with RequireJS when config depends on RequireJS
body: <p>Apologies if I have missed this in the docs. Basically I want to use the RequireJS module configuration feature. I would like to centrally manage the config values given to modules in a package.</p>
  
  <p>This is an example from the docs:</p>
  
  <pre><code>requirejs.config({
      config: {
          'bar': {
              size: 'large'
          },
          'baz': {
              color: 'blue'
          }
      }
  });
  
  //bar.js, which uses simplified CJS wrapping:
  define(function (require, exports, module) {
      //Will be the value 'large'
      var size = module.config().size;
  });
  
  //baz.js which uses a dependency array,
  define(['module'], function (module) {
      //Will be the value 'blue'
      var color = module.config().color;
  });
  </code></pre>
  
  <p>My problem is that my configuration info will be a little more complex, and will itself have dependencies. I would like to do:</p>
  
  <pre><code>requirejs.config({
      config: {
          'bar': {
              path: path.dirname(module.uri)
              key: crypto.randomBytes(64)
          },
      }
  });
  </code></pre>
  
  <p>Where variables in my config need to use requireJS to evaluate.</p>
  
  <p>To me it would make sense for there to be a logical separation between the RequireJS configuration - the config necessary to load modules - and the user's module configuration. But I am currently struggling to find this :(</p>