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
{{ message }}
Repository navigation
@angular-devkit/build-angular removes custom library decorators from another libraries on production build #15301
I define some decorators on one of my libraries and use them a lot on other libraries.
When I build my application with --prod Angular compiler removes using of them in generated code.
This problem occurs with @angular-devkit/build-angular@0.802.0 and I have no problem with @angular-devkit/build-angular@0.801.3
I have a decorator on "narik-core" (@NarikInject).
Every @NarikInject used in "test-build-angular" source, works fine but those that used in libraries (for example in "narik-core" and "narik-app-core") do not work at all.
If I change "@angular-devkit/build-angular" to "0.801.3" and "typescript" to "3.4.5" everything is OK.
This happens on ng build --prod and there is no problem on "ng serve"
changed the title [-]@angular-devkit/build-angular removes custom library decorators on production build[/-][+]@angular-devkit/build-angular removes custom library decorators from another libraries on production build[/+]on Aug 11, 2019
Activity
abadakhshan commentedon Aug 11, 2019
I created a repository for demo
https://github.com/abadakhshan/test-build-angular
I have a decorator on "narik-core" (@NarikInject).
Every @NarikInject used in "test-build-angular" source, works fine but those that used in libraries (for example in "narik-core" and "narik-app-core") do not work at all.
If I change "@angular-devkit/build-angular" to "0.801.3" and "typescript" to "3.4.5" everything is OK.
This happens on
ng build --prodand there is no problem on"ng serve"[-]@angular-devkit/build-angular removes custom library decorators on production build[/-][+]@angular-devkit/build-angular removes custom library decorators from another libraries on production build[/+]alan-agius4 commentedon Aug 11, 2019
Similar things have also been reported here: ng-packagr/ng-packagr#1307
fix(@angular-devkit/build-optimizer): don't add pure comments to tsli…
fix(@angular-devkit/build-optimizer): don't add pure comments to tsli…
angular-automatic-lock-bot commentedon Sep 13, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(@angular-devkit/build-optimizer): don't add pure comments to tsli…