You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of this package is to mangle renamed properties by minifiers like 'terser', but there is an issue, when using class members with decorators. When transformer renames decorated class member with prefix, this class member is mangled by minifier, but it can't handle connection of this class member and decorator function.
Ommiting implementation of __decorate fn, decorator transform has the following output
There is an issue in terser repo, where contributors assumed, that it could be solved by mangling string literals by same prefix as well, but according issue is still unresolved
The text was updated successfully, but these errors were encountered:
Not too sure about whether an option should be enabled by default (or whether this should should exist at all as I haven't worked with decorators close enough), but now at least it would be possible to disable renaming for decorated fields by enabling option ignoreDecorated, see 0c34883. Feel free to share feedback here or create another issue if you find anything else.
The goal of this package is to mangle renamed properties by minifiers like 'terser', but there is an issue, when using class members with decorators. When transformer renames decorated class member with prefix, this class member is mangled by minifier, but it can't handle connection of this class member and decorator function.
Ommiting implementation of
__decorate
fn, decorator transform has the following outputIf use ts-transformer-properties-rename package, it will be transformed to
But after terser's mangling it will be smth like that
There is an issue in terser repo, where contributors assumed, that it could be solved by mangling string literals by same prefix as well, but according issue is still unresolved
The text was updated successfully, but these errors were encountered: