title: Call a function that is exported within file in ES6
body: <p>With ES6 <code>export</code> syntax you can export a function such as:</p>
  
  <pre><code>export default async function main(){
    // do some stuff
  }
  
  main();
  </code></pre>
  
  <p>However when I run it using the syntax above, I receive the error below:</p>
  
  <p><code>ReferenceError: main is not defined</code></p>
  
  <p>How can I run this function while exporting it at the same time?</p>