title: export default grammar Babel ES6
body: <p>Using Babel, I'm having trouble importing the following module:</p>
  
  <pre><code>// mongoose_helpers.js
  
  const r_string = {
    type: String,
    required: true
  }
  
  const r_number = {
    type: Number,
    required: true
  }
  
  export default { r_string, r_number }
  </code></pre>
  
  <p>this way:</p>
  
  <pre><code>import { r_string, r_number } from './mongoose_helpers'
  </code></pre>
  
  <p>Which throws an error in the file I'm importing.</p>
  
  <p>However it works if I do this:</p>
  
  <pre><code>const r_string = {
    type: String,
    required: true
  }
  
  (...)
  
  const helpers = { r_string, r_number }
  
  export default helpers
  </code></pre>
  
  <p>and then</p>
  
  <pre><code>import helpers from './mongoose_helpers'
  </code></pre>
  
  <p>Just curious what is wrong with the first approach ?</p>