title: How to import everything exported from a file with ES2015 syntax? Is there a wildcard?
body: <p>With ES2015 syntax, we have the new import syntax, and I've been trying to figure out how to import everything exported from one file into another, without having it wrapped in an object, ie. available as if they were defined in the same file.</p>
  
  <p>So, essentially, this:</p>
  
  <pre class="lang-js prettyprint-override"><code>// constants.js
  
  const MYAPP_BAR = 'bar'
  const MYAPP_FOO = 'foo'
  </code></pre>
  
  
  
  <pre><code>// reducers.js
  
  import * from './constants'
  
  console.log(MYAPP_FOO)
  </code></pre>
  
  <p>This does not work, at least according to my Babel/Webpack setup, this syntax is not valid.</p>
  
  <h3>Alternatives</h3>
  
  <p>This works (but is long and annoying if you need more than a couple of things imported):</p>
  
  <pre class="lang-js prettyprint-override"><code>// reducers.js
  
  import { MYAPP_BAR, MYAPP_FOO } from './constants'
  
  console.log(MYAPP_FOO)
  </code></pre>
  
  <p>As does this (but it wraps the consts in an object):</p>
  
  <pre class="lang-js prettyprint-override"><code>// reducers.js
  
  import * as consts from './constants'
  
  console.log(consts.MYAPP_FOO)
  </code></pre>
  
  <p>Is there a syntax for the first variant, or do you have to either import each thing by name, or use the wrapper object?</p>