Minify private methods and private properties of JS classes
AnatoliyDanchuk opened this issue · comments
Actual: Private methods and private properties of JS classes are not minified.
Expected: Private methods and private properties of JS classes are minified.
Example:
class AnyClassName {
#anyPrivateProperty = 1;
#anyPrivateMethod() {}
}
What version are you using?
I have checked your link.
And your link confirms names of private properties/methods are not minimized.
I expect that names will be minimized to single char, because private properties and methods have only local scope like const|let, thus minimizer may safety minimize their names.
I used versions: v2.20.10, v2.20.9.
Ah now I understand, you mean that the names themselves are not minified, even though the syntax of private properties and methods are minified. I will look into this, great idea!