title: Typescript require not working
body: <p>I have 3 typescript files: main.ts, print.ts, log.ts</p>
  
  <p>I installed node modules and used typescript compiler - tsc main.ts - to compile .ts files.
  After that, I tried to run index.html with <code>npm start</code>, but console.log says require is not defined.  Am I still missing something? I use Visual Studio Code editor. </p>
  
  <p><strong>INDEX.HTML</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  
  &lt;meta charset="UTF-8"&gt;
  &lt;title&gt;this is the title&lt;/title&gt;
  
  &lt;style type="text/css"&gt;
  
  &lt;/style&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;div id="wrapper"&gt;
  &lt;/div&gt;
  
  &lt;script type='text/javascript' src='main.js'&gt;&lt;/script&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>MAIN.TS</strong></p>
  
  <pre><code>import log = require('./log')
  import print = require('./print')
  log.logMessage();
  print.printMessage();
  </code></pre>
  
  <p><strong>PRINT.TS</strong></p>
  
  <pre><code>export function printMessage() {
     console.log('print');
  }
  </code></pre>
  
  <p><strong>LOG.TS</strong></p>
  
  <pre><code>export function logMessage() {
     console.log('log');
  }
  </code></pre>
  
  <p>Console.log should say 'log' and 'print', but it doesn't.</p>