title: es6 exported function "not a function"
body: <p>I want to create a library file where I pass in a value and it returns an object that calls a created instance of localforage. </p>
  
  <p>EDITED: simplified code still doesn't work</p>
  
  <pre><code>export default function(walkId) {
      var store = localforage.createInstance({
          name: walkId
       });
  
       var tilesDb = {
          test: 'val'
       };
  
       return tilesDb;
   }
  </code></pre>
  
  <p>and I import it like this:</p>
  
  <pre><code>import getTilesDb from './tilesDb';
  </code></pre>
  
  <p>but when I call it:</p>
  
  <pre><code>let tilesDB = getTilesDb(someIdhere);
  </code></pre>
  
  <p>I get an error TypeError: Object(...) is not a function</p>
  
  <p>What am I doing wrong?  Why can't I call my function?</p>