Skip to content

Conversation

@SkyZeroZx
Copy link
Contributor

@SkyZeroZx SkyZeroZx commented Dec 16, 2025

…en ngDevMode is enabled.

Avoids including decorator names in production
assertTypeDefined calls, improving tree-shaking by preventing debug-only metadata from being included in production builds.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

…en `ngDevMode` is enabled.

Avoids including decorator names in production
`assertTypeDefined` calls, improving tree-shaking by preventing debug-only metadata from being included in production builds.
@pullapprove pullapprove bot requested a review from thePunderWoman December 16, 2025 00:17
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Dec 16, 2025
@ngbot ngbot bot added this to the Backlog milestone Dec 16, 2025
@JeanMeche
Copy link
Member

I'll close that as not worth it and actually impacting readability for a very marginable gain.
Thanks for the suggestion though.

@JeanMeche JeanMeche closed this Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Issues related to the framework runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants