How can I alias a default import in JavaScript?
<p>Using ES6 modules, I know I can alias a named import:</p>
<pre><code>import { foo as bar } from 'my-module';
</code></pre>
<p>And I know I can import a default import:</p>
<pre><code>import defaultMember from 'my-module';
</code></pre>
<p>I'd like to alias a default import and I had thought the following would work:</p>
<pre><code>import defaultMember as alias from 'my-module';
</code></pre>
<p>But that results in a parsing (syntax) error.</p>
<p>How can I (or can I?) alias a default import?</p>