title: combine nested modules with require.js optimizer
body: <p>I have the following. </p>
  
  <pre><code>require([ 'a', 'b' ], function() {     
     if(x){
         require([ 'c', 'd' ], function( ) {});
     }   
  });
  </code></pre>
  
  <p><code>c</code> will always be loaded with <code>d</code>. Is there anyway to make the optimizer optimize <code>c</code> and <code>d</code> so that they will load as one file?</p>
  
  <p>EDIT:</p>
  
  <p>Also im using r.js as the optimizer. And the modules for my build script look something like this.</p>
  
  <pre><code>modules: [
      {
          name: "main",
      },
      {
          name: "c",
              include: ["d"]
      }
  ] 
  </code></pre>
  
  <p>This will include <code>d</code> in <code>c</code>, but both <code>c</code> and <code>d</code> are still loaded at runtime.</p>