title: "import" unexpected token? (chrome 62)
body: <p>While trying to troubleshoot why systemjs didn't find a custom library I installed (could be a follow up question) I was stuck when trying to do things "manually".</p>
  
  <p>So I have a simple system that consists of 3 files:</p>
  
  <ul>
  <li>index.html</li>
  <li>hi.js</li>
  <li>hi2.js</li>
  </ul>
  
  <p>the index is just:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;Test&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;script src="hi.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>hi.js:</p>
  
  <pre><code>import * as hi from "hi2.js";
  
  hi.myFunction();
  </code></pre>
  
  <p>hi2.js:</p>
  
  <pre><code>function myFunction() {
    alert('hi')
  }
  export { myFunction };
  </code></pre>
  
  <p>Now when I run (using webstorm and chrome 62) above code, I get the following error, reported by the (chrome) debugger: 
  "Uncaught SyntaxError: Unexpected token import"</p>
  
  <p>What's happening here? I checked for javascript compliance <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import" rel="noreferrer">on mdn</a> and it tells me import is supported by chrome 61 and newer. - I use chrome 62 for testing this.</p>
  
  <p>So what's going on, and how to make it work?</p>
  
  <p>Per <a href="https://stackoverflow.com/questions/46306148/chrome-61-unexpected-token-import">recomendation</a> I also changed the html line to <code>&lt;script type="module" src="hi.js"&gt;&lt;/script&gt;</code>. That didn't help at all, same error.</p>