Re-exporting ES6 modules in TS 1.7?
<p>I'm getting a bit lost in TS re-exports. Say I create a pair of test modules;</p>

<p>test1.ts;</p>

<pre><code>export function test1() {
    return 'test';
}
</code></pre>

<p>test2.ts;</p>

<pre><code>export function test2() {
    return 'test';
}
</code></pre>

<p>I believe I should be able to then do something like this;</p>

<p>combined.ts;</p>

<pre><code>export * from './test1';
export * from './test2';

module.exports = {
    test1: test1,
    test2: test2
};
</code></pre>

<p>But, no such luck. There seem to be lots of GitHub issues discussing various approaches to this, including an old hack using <code>export import * from './test1'</code> but they all seem to argue what the ES6 spec really means, and none actually work..</p>

<p>What's the right way to do a rollup like this? Am I just going down the wrong path to split a module up across files? Are namespaces more appropriate here?</p>