Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Oct 20, 2024

The internal AOT Angular compilation processing can now generate the newly introduced template update functions during development server rebuilds of template only file changes. These template update functions are not yet used but provide the infrastructure to enable template hot replacement in a future change.

…e update functions

The internal AOT Angular compilation processing can now generate the newly
introduced template update functions during development server rebuilds of
template only file changes. These template update functions are not yet used
but provide the infrastructure to enable template hot replacement in a
future change.
@clydin clydin added the target: major This PR is targeted for the next major release label Oct 20, 2024
@clydin clydin marked this pull request as ready for review October 21, 2024 07:01
@clydin clydin requested a review from alan-agius4 October 21, 2024 07:01
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 21, 2024
Comment on lines +428 to +429
const lowerFile = file.toLowerCase();
if (lowerFile.endsWith('.html') || lowerFile.endsWith('.svg')) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

NIT:

Suggested change
const lowerFile = file.toLowerCase();
if (lowerFile.endsWith('.html') || lowerFile.endsWith('.svg')) {
const ext = extname(file).toLowerCase();
if (ext === '.html' || ext === '.svg') {

Or also

 return [...modifiedFiles].every(file => /\.(html|svg)$/i.test(file));

Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

LGTM, just one optional NIT

@clydin clydin 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 Oct 22, 2024
@clydin clydin merged commit 6486b57 into angular:main Oct 22, 2024
34 of 35 checks passed
@clydin clydin deleted the hmr/initial-template-update branch October 22, 2024 09:53
@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 Nov 22, 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: @angular/build target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants