Split a Javascript class (ES6) over multiple files?
<p>I have a Javascript class (in ES6) that is getting quite long. To organize it better I'd like to split it over 2 or 3 different files. How can I do that?</p>

<p>Currently it looks like this in a single file:</p>

<pre><code>class foo extends bar {
   constructor(a, b) {} // Put in file 1
   methodA(a, b) {} // Put in file 1
   methodB(a, b) {} // Put in file 2
   methodC(a, b) {} // Put in file 2
}
</code></pre>

<p>Thanks!</p>