title: Problems loading timezone library in Electron
body: <p>My index.html has the following scripts.</p>
  
  <pre><code>&lt;script src="js/moment.js"&gt;&lt;/script&gt;
  &lt;script src="js/moment-timezone-with-data.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>When I run the electron app, I get an <code>Uncaught Error: Cannot find module 'moment'</code>. The timezone library seems unable to tell that I have included moment.js. </p>
  
  <p>This does appear to be a problem with Electron, as doing the same thing in a regular HTML file structure leads to everything working fine.  </p>
  
  <p>EDIT:
  I have tried modifying my code in the following manner. </p>
  
  <pre><code>&lt;script src="js/moment.js"&gt;&lt;/script&gt;
  &lt;script onload="window.moment = require(__dirname+'/js/moment.js');" src="js/moment-timezone-with-data.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>This still does not appear to produce any results. </p>