title: Javascript import function syntax
body: <p>I am trying to import a function from another module but on running am getting an error:</p>
  
  <pre><code>TypeError: _this.getData is not a function.
  </code></pre>
  
  <p>data.js</p>
  
  <pre><code>function getData() {
    return [
      { id: 1,
        name: 'Pluto',
        type: 'Dwarf Planet'
      },
      { id: 2,
        name: 'Neptune',
        type: 'Planet'
      }
    ]
  }
  export { getData }
  </code></pre>
  
  <p>worker.js</p>
  
  <pre><code>import getData from data.js
  
  this.data = this.getData()
  </code></pre>
  
  <p>Then on run I get the browser error as mentioned above. Any ideas as to what I am doing incorrectly?</p>