'Angular 12 and method decorator with minification
In Angular 12, is it considered safe to rely on the method's name which a decorator is declared on ? Can method names be minified when building an Angular 12 app with all optimization enabled ?
See this example for context about decorator:
export function MyDecorator() {
return function (target: unknown, methodName: string, descriptor: PropertyDescriptor) {
const originalMethod = descriptor.value as (...args: any) => any;
// Can I be sure that `methodName` declared above will actually be the exact name that is
// defined in the code and not a minified version of it (e.g with only one letter)
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
