Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Mar 12, 2025

An ngHmrMode boolean value will now be defined within application bundles. The value is based on the development server's hmr option with true when HMR is enabled and false when disabled. For all application builds, the value will be false. ngHmrMode is similar in behavior to ngServeMode or ngDevMode. It will not be present in the output code unless referenced and in those cases only the final boolean value will be present if not optimized out of the final code.
The value is not considered part of the public API and may change in the future.

An `ngHmrMode` boolean value will now be defined within application bundles.
The value is based on the development server's `hmr` option with `true`
when HMR is enabled and `false` when disabled. For all application builds,
the value will be `false`. `ngHmrMode` is similar in behavior to `ngServeMode`
or `ngDevMode`. It will not be present in the output code unless referenced
and in those cases only the final boolean value will be present if not optimized
out of the final code.
The value is not considered part of the public API and may change in the future.
@clydin clydin force-pushed the dev/ng-hmr-mode-define branch from 064924d to 7b16cd6 Compare March 13, 2025 02:40
@clydin clydin marked this pull request as ready for review March 13, 2025 02:41
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 13, 2025
@clydin clydin added target: patch This PR is targeted for the next patch release 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 Mar 13, 2025
@clydin clydin removed the request for review from AndrewKushnir March 13, 2025 23:37
@clydin clydin merged commit 318c164 into angular:main Mar 13, 2025
34 checks passed
@clydin
Copy link
Member Author

clydin commented Mar 13, 2025

The changes were merged into the following branches: main, 19.2.x

@clydin clydin deleted the dev/ng-hmr-mode-define branch March 13, 2025 23:38
@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 Apr 13, 2025
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: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants