title: Why can't I import a default export with "import ... as" with BabelJS
body: <p>In version 5.6.4 of BabelJS, I seemingly cannot "import ... as." Here are examples of what I am trying to do:</p>
  
  <p>In file 'test.js':</p>
  
  <pre><code>export default class Test {};
  </code></pre>
  
  <p>In file 'test2.js' (in the same directory):</p>
  
  <pre><code>import Test as Test2 from './test';
  </code></pre>
  
  <p>I have also tried to do:</p>
  
  <pre><code>import {Test as Test2} from './test';
  </code></pre>
  
  <p>Even though it says nothing about that here:
  <a href="http://babeljs.io/docs/learn-es2015/#modules" rel="noreferrer">http://babeljs.io/docs/learn-es2015/#modules</a></p>
  
  <p>And only uses brackets in the non-default syntax here:
  <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import" rel="noreferrer">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import</a></p>
  
  <p>Has anyone done this successfully?</p>
  
  <p><strong>EDIT</strong>: It is absolutely because of the <code>default</code> keyword. So, in this case, the question becomes, does anyone have any links to documentation that states that I should not be able to alias a default import? ECMA or Babel.</p>