title: RequireJs : Module not defined
body: <p>I am trying to use require in my simple javascript file, with file defined in module.exports, but unfortunately i am getting error  <strong>Uncaught ReferenceError: module is not defined</strong>, did I miss any thing. </p>
  
  <p><em>a.js</em></p>
  
  <pre><code>  function Dosomthing() {
      console.log('234234');
  }
  
  module.exports = Dosomthing;
  </code></pre>
  
  <p>main.html</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;script src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.15/require.js"&gt;&lt;/script&gt;
      &lt;script&gt;
      var doSomething = require(['a']);
         doSomething();
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>link : <a href="http://plnkr.co/edit/Lk3KDNcBAx5z6Wz2KF7v?p=preview" rel="nofollow">http://plnkr.co/edit/Lk3KDNcBAx5z6Wz2KF7v?p=preview</a></p>