common js require vs. ES2015 import
<p>In a lot of code written for node.js you can see something like</p>

<pre><code>var debug = require('debug')('myserver:sub-bit');
</code></pre>

<p>The question I have, is how do I do this with import? The following does not seem to work.</p>

<pre><code>var debug = (import d from 'debug')('myserver:sub-bit');
</code></pre>

<p>Nor have I found any other working short variations. The long approach, of course, does</p>

<pre><code>import debugLib as 'debug';
var debug = debugLib('myserver:sub-bit');
</code></pre>

<p>But I just wanted an approach that didn't need to be broken out into two statements.</p>