This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.
Description
I'm extending this discussion over here from my Closure Compiler issue. The summary is as follows:
I have an AuthStore class that declares a getUser method that has an @autoSubscribe decorator. TypeScript compiles this by adding this after the class definition:
__decorate([
resub_1.autoSubscribe
], AuthStore.prototype, "getUser", null);
After minification via Closure Compiler, my getUser is named d, but the call to __decorate still contains "getUser". This obviously fails.
@mprobst and @ChadKillingsworth suggest using goog.reflect to solve the issue like so:
__decorate([
resub_1.autoSubscribe
], AuthStore.prototype,
goog.reflect.objectProperty("getUser", AuthStore.prototype),
null);
Is it possible that tsickle could extend support to method decorators to emit something like this?
Reactions are currently unavailable
I'm extending this discussion over here from my Closure Compiler issue. The summary is as follows:
I have an AuthStore class that declares a getUser method that has an @autoSubscribe decorator. TypeScript compiles this by adding this after the class definition:
After minification via Closure Compiler, my getUser is named d, but the call to __decorate still contains "getUser". This obviously fails.
@mprobst and @ChadKillingsworth suggest using goog.reflect to solve the issue like so:
Is it possible that tsickle could extend support to method decorators to emit something like this?