Closed bo4arovpavel1989 closed 3 years ago
Hi there,
yeah, looks legit for me.
Btw, did you see kind of the next generation of this project https://github.com/timocov/ts-transformer-properties-rename? It could do even more than just rename privates in classes, so probably you might find this helpful.
Hi there,
yeah, looks legit for me.
Btw, did you see kind of the next generation of this project https://github.com/timocov/ts-transformer-properties-rename? It could do even more than just rename privates in classes, so probably you might find this helpful.
oh, thanks, i didn't. Sure, will have a look
There is a problem, when using decorators with private class members. This package is meant to be used with terser minify properties option, but for now terser isn't able to work with class members decorators (issue here). Seems, that can be fixed, when add additional check for decorators here. That would be smth like:
where
hasDecorators
fn impl:seems, this solution would fit for all cases now, since props or methods with decorators can't be minified anyway? If any thoughts, i would be glad to contribute