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
I am unable to disable experimentalDecorators, and thus am not able to use ECMAScript Decorators in my libraries.
When trying to use an ECMAScript decorator an error is thrown on build. This error does not occur when building with TSC.
It seems like the setting experimentalDecorators is being overwritten by ng-packagr, thus functionally prohibiting the use of ECMAScript decorators in Angular libraries.
How To Reproduce
Create a library in an Angular project.
Change the tsconfig.lib.json to disable experimentalDecorators
Utilise an ECMAScript only decorator in the library
Build library using ng build
This fails compilation with an error indicating that the decorator is an invalid format.
Expected Behaviour
ng-packagr should respect the experimentalDecorators setting in tsconfig and allow ECMAScript decorators.
Type of Issue
Description
I am unable to disable
experimentalDecorators
, and thus am not able to use ECMAScript Decorators in my libraries.When trying to use an ECMAScript decorator an error is thrown on build. This error does not occur when building with TSC.
It seems like the setting
experimentalDecorators
is being overwritten by ng-packagr, thus functionally prohibiting the use of ECMAScript decorators in Angular libraries.How To Reproduce
Create a library in an Angular project.
Change the tsconfig.lib.json to disable
experimentalDecorators
Utilise an ECMAScript only decorator in the library
Build library using
ng build
This fails compilation with an error indicating that the decorator is an invalid format.
Expected Behaviour
ng-packagr should respect the
experimentalDecorators
setting in tsconfig and allow ECMAScript decorators.Version Information
The text was updated successfully, but these errors were encountered: