title: Uncaught TypeError: (0 , _module) is not a function
body: <p>I'm using parcel, and I'm trying to use ES6 import and export syntax. Parcel seems to run babel underground, I'm very new to it. When openimn the index.html placed on "dist" folder it does not render well and shows this error in console: "Uncaught TypeError: (0 , _module.importedHi) is not a function"</p>
  
  <p>This the code in the exporting JS file:</p>
  
  <pre><code>export const importedHi = document.write("Hello world")
  </code></pre>
  
  <p>And this is the code of the main.js:</p>
  
  <pre><code>import {importedHi} from "./module1";
  
  importedHi()
  </code></pre>
  
  <p>And this is the script im using in index.html</p>
  
  <pre><code>&lt;script src="js/main.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>What do I have to configure so that this works properly?</p>