title: TypeScript requirejs issue with loading external modules
body: <p>I am having issues with this game.js code that the game.ts file compiles to:</p>
  
  <pre><code>var GameObjects = require("./GameObjects")
  </code></pre>
  
  <p>I have set up my page index.html js imports as so:</p>
  
  <pre><code>&lt;script language="javascript" src="javascripts/require.js" type="text/javascript"&gt; &lt;/script&gt;
  &lt;script language="javascript" src="javascripts/jquery-1.8.2.min.js" type="text/javascript"&gt; &lt;/script&gt;
  &lt;script language="javascript" src="ts/GameObjects.js" type="text/javascript"&gt; &lt;/script&gt;
  &lt;script language="javascript" src="ts/game.js" type="text/javascript"&gt; &lt;/script&gt;
  </code></pre>
  
  <p>and this is the error in chrome:</p>
  
  <pre><code>Uncaught ReferenceError: exports is not defined GameObjects.js:82
  Uncaught Error: Module name "GameObjects" has not been loaded yet for context: _. Use require([]) http://requirejs.org/docs/errors.html#notloaded
  </code></pre>
  
  <p>any ideas friends?</p>