Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.2.x][ES2015][prod] custom decorators on inputs are ignored when used inside lib #15325

Closed
jlowcs opened this issue Aug 9, 2019 · 2 comments

Comments

@jlowcs
Copy link

jlowcs commented Aug 9, 2019

馃悶 bug report

Affected Package

I'd assume @angular-devkit/build-angular@0.802.x

Is this a regression?

Yes, the issue was not present in Angular 8.1.x or 8.0.x, or even previous majors.

Description

When running in prod mode, with a ES2015 target, any custom decorator that is used in a library used by the app will simply be ignored.

馃敩 Minimal Reproduction

I made a small repository that reproduces the issue. You can follow the README.

Basically, what it does is:

  • build a library that uses a custom decorator on a component's input
  • use the component from that built library in an app, in prod mode, with a ES2015 target

=> the decorator is ignored

馃實 Your Environment

Angular Version:


Angular CLI: 8.2.1
Node: 10.15.3
OS: win32 x64
Angular: 8.2.1
... cli, common, compiler, compiler-cli, core, platform-browser
... platform-browser-dynamic

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.802.1
@angular-devkit/build-angular      0.802.1
@angular-devkit/build-ng-packagr   0.802.1
@angular-devkit/build-optimizer    0.802.1
@angular-devkit/build-webpack      0.802.1
@angular-devkit/core               8.2.1
@angular-devkit/schematics         8.2.1
@ngtools/webpack                   8.2.1
@schematics/angular                8.2.1
@schematics/update                 0.802.1
ng-packagr                         5.4.3
rxjs                               6.5.2
typescript                         3.5.3
webpack                            4.38.0

Anything else relevant?

The issue is only present when targetting ES2015 and in prod mode.

@jlowcs jlowcs changed the title [8.2.x][ES2016][prod] custom decorators on inputs are ignored when used inside lib [8.2.x][ES2015][prod] custom decorators on inputs are ignored when used inside lib Aug 9, 2019
@alxhub alxhub transferred this issue from angular/angular Aug 13, 2019
@clydin
Copy link
Member

clydin commented Aug 13, 2019

Duplicate of #15301

@clydin clydin marked this as a duplicate of #15301 Aug 13, 2019
@clydin clydin closed this as completed Aug 13, 2019
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants