title: module specifier in es6 import and export
body: <p>I'm confused about what the module specifier in these statements refer to:</p>
  
  <pre><code>export {bar} from "foo";
  
  import {bar} from "foo";
  </code></pre>
  
  <p>What does <code>"foo"</code> refer to? It can't be a file since it would be something like <code>"./foo"</code>. If it's not a file, I assume it's an ID. How is the ID defined?</p>
  
  <p>I'm exporting from a js file, but the import would be part of an inline html script (<code>type="module"</code>) in the firefox browser.</p>
  
  <p>The browser version (and browser settings) have been verified to work with es6 modules.</p>
  
  <p>Thanks in advance.</p>