title: es6 equivalent for module.exports
body: <p>What's the ES6 equivalent for module.exports</p>
  
  <p>I want to get the value of foo from an import statement</p>
  
  <pre><code>module.exports = {
      foo: function (a) {
      }
  }
  </code></pre>
  
  <p>Tried:</p>
  
  <pre><code>export default {
      foo: function (a) {
      }
  }
  </code></pre>
  
  <p>The way first one is imported is using:</p>
  
  <pre><code>var file;
  var filename = root + "/" + fileStats.name;
  file = require(path.resolve(filename));
  </code></pre>
  
  <p>I want to use ES6 import statement. I read somewhere that this isn't supported however would like to still know if there's a work around this.</p>