How to minify nested properties : <p>I'm using <code>terser-js</code> to minify my code.</p>

<p>The output:</p>

<pre><code>a.prototype.a = ...
a.prototype.b = ...
a.prototype.c = ...
</code></pre>

<p>What I want:</p>

<pre><code>var h = a.prototype
h.a = ...
h.b = ...
h.c = ...
</code></pre>

<p>Note that I can't write it by hand because the inputs are generated from <code>TypeScript</code>.</p>
