title: require.js synchronous loading
body: <p>I'd like to define a module which computes a new dependancy, fetches it and then returns the result. Like so:</p>
  
  <pre class="lang-js prettyprint-override"><code>define(['defaults', 'get_config_name'], function(defaults, get_config_name) {
      var name = get_config_name();
      var config;
      require.synchronous([configs / '+name'], function(a) {
          config = defaults.extend(a);
      });
      return config;
  });
  </code></pre>
  
  <p>Is there a way to do this or a better way to attack this problem?</p>