title: How can I access configuration of Require.js
body: <p>I try to get the <code>baseUrl</code> configuration of Require.js inside a module, but I can't find where it is stored.</p>
  
  <pre><code>define([], function() {
    // Here I'd like to access the `baseUrl` require.js is using
    var baseUrl = requirejs.config().baseUrl;
  });
  </code></pre>
  
  <p>In my case, the <code>baseUrl</code> is set up by Require.js using the <code>data-main</code> attribute of the script file.</p>
  
  <p>I know I can request <code>module</code> to access the <code>config</code> attributes (e.g. <code>define(['module'])</code>), but I can't find how to access the higher level of configuration option.</p>