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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ngcc): find decorated constructor params on IIFE wrapped classes #37436

Conversation

petebacondarwin
Copy link
Member

Now in TS 3.9, classes in ES2015 can be wrapped in an IIFE.
This commit ensures that we still find the static properties that contain
decorator information, even if they are attached to the adjacent node
of the class, rather than the implementation or declaration.

Fixes #37330

I have checked locally and this allows the reproduction in #37330 to build without error.

@petebacondarwin petebacondarwin added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release comp: ngcc labels Jun 4, 2020
@ngbot ngbot bot modified the milestone: needsTriage Jun 4, 2020
@pullapprove pullapprove bot requested a review from alxhub June 4, 2020 11:57
@petebacondarwin petebacondarwin requested review from JoostK and removed request for alxhub and gkalpak June 4, 2020 11:57
@pullapprove pullapprove bot requested a review from alxhub June 4, 2020 11:57
Now in TS 3.9, classes in ES2015 can be wrapped in an IIFE.
This commit ensures that we still find the static properties that contain
decorator information, even if they are attached to the adjacent node
of the class, rather than the implementation or declaration.

Fixes angular#37330
@petebacondarwin petebacondarwin removed the request for review from alxhub June 5, 2020 10:22
@petebacondarwin petebacondarwin added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jun 5, 2020
@atscott atscott closed this in 818d93d Jun 5, 2020
atscott pushed a commit that referenced this pull request Jun 5, 2020
…37436)

Now in TS 3.9, classes in ES2015 can be wrapped in an IIFE.
This commit ensures that we still find the static properties that contain
decorator information, even if they are attached to the adjacent node
of the class, rather than the implementation or declaration.

Fixes #37330

PR Close #37436
@petebacondarwin petebacondarwin deleted the ngcc-contructor-params-in-iife branch June 8, 2020 18:07
ngwattcos pushed a commit to ngwattcos/angular that referenced this pull request Jun 25, 2020
…ngular#37436)

Now in TS 3.9, classes in ES2015 can be wrapped in an IIFE.
This commit ensures that we still find the static properties that contain
decorator information, even if they are attached to the adjacent node
of the class, rather than the implementation or declaration.

Fixes angular#37330

PR Close angular#37436
@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 Jul 9, 2020
profanis pushed a commit to profanis/angular that referenced this pull request Sep 5, 2020
…ngular#37436)

Now in TS 3.9, classes in ES2015 can be wrapped in an IIFE.
This commit ensures that we still find the static properties that contain
decorator information, even if they are attached to the adjacent node
of the class, rather than the implementation or declaration.

Fixes angular#37330

PR Close angular#37436
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Angular 10-rc.0 library build failures
4 participants