title: ES6 module syntax: is it possible to `export * as Name from ...`?
body: <p>See question title. I found a <a href="https://stackoverflow.com/a/34842087/718180">great reference</a> for the forms of <code>export</code> available, but I have not seen what I'm looking for.</p>
  <p>Is it possible to do something like the following?</p>
  <pre><code>// file: constants.js
  export const SomeConstant1 = 'yay';
  export const SomeConstant2 = 'yayayaya';
  
  // file: index.js
  export * as Constants from './constants.js';
  </code></pre>
  <p>I.e. this would provide a named export <code>Constants</code> inside of <code>index.js</code> containing all of the named exports from <code>constants.js</code>.</p>
  <hr />
  <p><a href="https://stackoverflow.com/questions/42728140/is-it-possible-to-export-as-foo-in-typescript">This answer</a> seems to indicate it's not possible in TypeScript; is the same true for pure JavaScript?</p>
  <p>(This example is a bit contrived; in reality I'm trying to have a <code>prop-types.js</code> module that uses named exports for internal use within the React package, but also exports the prop type definitions under <code>PropTypes</code> for external consumption. I tried to simplify for the sake of the question.)</p>