Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Two @nocollapse related fixes for Ivy #28050

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

Closed
wants to merge 2 commits into from

Conversation

alxhub
Copy link
Member

@alxhub alxhub commented Jan 10, 2019

No description provided.

ngtsc has a hack to add @nocollapse jsdoc annotations to generated static
fields. This hack is currently broken (likely due to a TypeScript change
in the way writeFile() works).

This commit fixes the hack and introduces an ngtsc_spec test to ensure it
does not regress again.
@alxhub alxhub requested a review from a team as a code owner January 10, 2019 18:42
@alxhub alxhub requested a review from vikerman January 10, 2019 18:42
@alxhub alxhub added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release labels Jan 10, 2019
@mary-poppins
Copy link

You can preview f67b62c at https://pr28050-f67b62c.ngbuilds.io/.

@alxhub alxhub removed the action: merge The PR is ready for merge by the caretaker label Jan 10, 2019
__NG_ELEMENT_ID__ static fields are a part of how the Ivy node injector
works. In order to survive closure minification correctly, they need to
be annotated with @nocollapse.
@alxhub alxhub requested a review from a team as a code owner January 10, 2019 23:22
@mary-poppins
Copy link

You can preview ab79102 at https://pr28050-ab79102.ngbuilds.io/.

@alxhub alxhub requested a review from AndrewKushnir January 10, 2019 23:28
@alxhub alxhub changed the title fix(ivy): ensure @nocollapse is added to static fields Two @nocollapse related fixes for Ivy Jan 10, 2019
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@AndrewKushnir
Copy link
Contributor

@vikerman @alxhub could you plz post g3 presubmit link or change g3 status? Thank you.

@AndrewKushnir
Copy link
Contributor

Presubmit

@alxhub alxhub added the action: merge The PR is ready for merge by the caretaker label Jan 11, 2019
AndrewKushnir pushed a commit that referenced this pull request Jan 11, 2019
…lds (#28050)

__NG_ELEMENT_ID__ static fields are a part of how the Ivy node injector
works. In order to survive closure minification correctly, they need to
be annotated with @nocollapse.

PR Close #28050
mhevery added a commit to mhevery/angular that referenced this pull request Jan 12, 2019
AndrewKushnir pushed a commit that referenced this pull request Jan 12, 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 14, 2019
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: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants