Skip to content

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

Description

@jlowcs

🐞 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.

Activity

  1. 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[/+] on Aug 9, 2019
  2. transferred this issue fromangular/angularon Aug 13, 2019
  3. clydin commented on Aug 13, 2019

    @clydin
    Member

    Duplicate of #15301

  4. angular-automatic-lock-bot commented on Sep 13, 2019

    @angular-automatic-lock-bot

    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.

  5. locked and limited conversation to collaborators on Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions