ES6 import "module" don't give acces to function of "module"
<p>I am trying to use ES6 imorts with babel and Node.js</p>

<pre><code>import "./utils.js";

log("something"); //throw an error : log is not defined
</code></pre>

<p>My <code>utils.js</code> look like this :</p>

<pre><code>function log(... params){
    console.log(... params);
}

log("module utils executed");
//Is executed and display "module utils executed" in the console.
</code></pre>

<p>I have also tryed to use <code>export function log(... params)</code> and <code>export default log(... params)</code> but it doesn't works.</p>

<p>So I don't understand how this is suppose to works...</p>

<p>EDIT:</p>

<p>I know that an other way to import is to do <code>import utils from "./utils.js"</code></p>

<p>But it's not what I want. I want to be able to use <code>log()</code> without prefixing it with the module variable name. Like in <a href="https://ponyfoo.com/articles/es6-modules-in-depth#import" rel="nofollow">this blog post</a></p>