title: Are ES6 module imports hoisted?
body: <p>I know that in the new ES6 module syntax, the JavaScript engine will not have to <strong>evaluate</strong> the code to know about all the imports/exports, it will only <strong>parse</strong> it and “know” what to load.</p>
  
  <p>This sounds like hoisting. Are the ES6 modules hoisted? And if so, will they all be loaded before running the code?</p>
  
  <p>Is this code possible?</p>
  
  <pre class="lang-js prettyprint-override"><code>import myFunc1 from 'externalModule1';
  
  myFunc2();
  
  if (Math.random()&gt;0.5) {
      import myFunc2 from 'externalModule2';
  }
  </code></pre>