ES6 module import group of files with individual exports
<p>I would like to combine some modules into a single file that can be imported. These are local files and not part of an npm module.</p>

<p>Module Kitten (kitten.js)</p>

<pre><code>export function Feed() {}
export function Play() {}
</code></pre>

<p>In my code I can access  'Feed' and 'Play':</p>

<pre><code>// This works but I would like to avoid this due to my paths
import { Feed, Play } from './some/long/path/kitten.js'

// Then use it
Feed()
</code></pre>

<p>As I have many 'pets' I can contenate them in a master file - say pets.js</p>

<pre><code>export * as Kitten from './some/long/path/kitten.js'
export * as Puppies from './some/long/path/puppies.js'
...
</code></pre>

<p>In my code I can then do:</p>

<pre><code>import { Kitten, Puppies } from './pets'

// Then use it as
Kitten.Feed()
</code></pre>

<p>is it possible to have both a) the master pets file and b) call <code>Feed()</code> without doing <code>Kitten.Feed()</code>?</p>

<p>The following doesn't work as it's not a valid path. It's possible it would work as 'pets/Kitten' if it was an npm module -  am not sure.</p>

<pre><code>import { Feed, Play } from './pets/Kitten'
</code></pre>

<p>I was thinking something along the lines of:</p>

<pre><code>import * as Pets from from './pets'
import { Feed, Play } from Pets.Kitten // or 'Pets/Kitten'
</code></pre>

<p>But clearly that doesn't work. I am wondering if it's at all possible.</p>

<p>I am using this in Node with Babel 6 and ES6 module loading. I see a lot of similar questions but they all use default exports which I am not using.</p>