title: ES6 Exporting and Importing a Function
body: <p>If I have an ES6 JS file (test.js) ...</p>
  
  <pre><code>export default function() {
    let foo = "test"
    return foo
  }
  </code></pre>
  
  <p>With Babel, is it possible to transpile and call it in an index.html file</p>
  
  <pre><code>&lt;script src="js/text-min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>And start using the function without needing to import it into another js file? For Ex. the next script tag after would have the following code. This is in use with Webpack --</p>
  
  <pre><code>&lt;script&gt;
    var bar = new foo();
    console.log(bar);
  &lt;/script&gt;
  </code></pre>