title: Javascript export/import class
body: <p>Why is this example below not outputting "hello world"?  Instead, I am getting: </p>
  
  <blockquote>
    <p>TypeError: _base2.default.test is not a function</p>
  </blockquote>
  
  <p>(it is being transpiled with Babel)</p>
  
  <p><strong>file1.js</strong></p>
  
  <pre><code>import Example from './file2';
  console.log(Example.test());
  </code></pre>
  
  <p><strong>file2.js</strong></p>
  
  <pre><code>export default class Example {
    test() {
      console.log('hello world');
    }
  }
  </code></pre>