title: require working but import not working
body: <p>I have a actions.js file that is exporting actions like this</p>
  
  <pre><code>export var toggleTodo = (id) =&gt; {
    return {
      type: 'TOGGLE_TODO',
      id
    }
  }
  </code></pre>
  
  <p>but when i import it using es6 import i get error</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'toggleTodo' of undefined
  </code></pre>
  
  <p>but when i require it using common js require it works just fine! Can someone explain to me why is this happening, I mean i read these two are same things... Something seem to be different ?</p>
  
  <pre><code>// var actions = require('actions') working 
  // dispatch(actions.toggleTodo(id));
  
  import actions from 'actions' //not working
  dispatch(actions.toggleTodo(id));
  </code></pre>