Skip to content

fix(compiler): output input flags as a literal#55215

Closed
crisbeto wants to merge 1 commit intoangular:mainfrom
crisbeto:input-flags-literal
Closed

fix(compiler): output input flags as a literal#55215
crisbeto wants to merge 1 commit intoangular:mainfrom
crisbeto:input-flags-literal

Conversation

@crisbeto
Copy link
Member

@crisbeto crisbeto commented Apr 4, 2024

Previously the input flags were being generated as a reference to an enum member for better readability and under the assumption that minifiers would inline the values. That doesn't appear to be the case so these changes switch to using the literal values instead.

@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release area: compiler Issues related to `ngc`, Angular's template compiler labels Apr 4, 2024
@ngbot ngbot bot added this to the Backlog milestone Apr 4, 2024
Previously the input flags were being generated as a reference to an enum member for better readability and under the assumption that minifiers would inline the values. That doesn't appear to be the case so these changes switch to using the literal values instead.
@crisbeto crisbeto force-pushed the input-flags-literal branch from 0594e13 to afea1c6 Compare April 4, 2024 12:52
@crisbeto crisbeto requested a review from devversion April 4, 2024 13:10
@crisbeto crisbeto marked this pull request as ready for review April 4, 2024 13:10
/**
* Remove trailing null nodes as they are implied.
*/
export function trimTrailingNulls(parameters: o.Expression[]): o.Expression[] {
Copy link
Member Author

Choose a reason for hiding this comment

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

This one is unrelated, I just noticed that we can remove it now that TDB has been deleted.

@crisbeto crisbeto 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 Apr 4, 2024
@thePunderWoman
Copy link
Contributor

This PR was merged into the repository by commit 39624c6.

@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 May 5, 2024
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 area: compiler Issues related to `ngc`, Angular's template compiler target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants