I'm using terser-js to minify my code.
The output:
a.prototype.a = ...
a.prototype.b = ...
a.prototype.c = ...
What I want:
var h = a.prototype
h.a = ...
h.b = ...
h.c = ...
Note that I can't write it by hand because the inputs are generated from TypeScript.
from How to minify nested properties
No comments:
Post a Comment