title: Using es6-shim in an Angular2/TypeScript project
body: <p>I want to use es6's Map for an Angular2/typescript project. I guess the way to achieve that is through the es6-shim library. However I am really confused on how I am supposed to do that. Here is what I have done so far:</p>
  
  <p>On my root index.html file I have this:</p>
  
  <pre><code>&lt;script src="../node_modules/es6-shim/es6-shim.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The above works just fine because if I run my app now it will load with no problems.</p>
  
  <p>Then, in one of my typescript files I have this:</p>
  
  <pre><code>import * as shim from 'es6-shim/es6-shim.js';
  </code></pre>
  
  <p>If I do this I get an error when I try to run my application:</p>
  
  <pre><code>GET http://localhost:63342/gbkfitcloud_client/src/es6-shim/es6-shim 404 (Not Found)
  </code></pre>
  
  <p>Isn't this strange since I included es6-shim in my index.html?</p>
  
  <p>Now, if I just manually copy the es6-shim.js file in the above directory it works, I don't get any errors.</p>
  
  <p>Then, I try to create a Map object like this:</p>
  
  <pre><code>let foo = new shim.Map();
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>ORIGINAL EXCEPTION: TypeError: shim.Map is not a function
  </code></pre>
  
  <p>So, since I get these strange errors I assume that I am doing something totally wrong. Can someone help me please? </p>
  
  <p>Thank you!</p>