Skip to content

fix(@angular-devkit/build-angular): clear diagnostic cache when external templates change with esbuild builders - #25940

Merged
clydin merged 1 commit into
angular:mainfrom
clydin:esbuild/aot-template-diag
Oct 4, 2023
Merged

clydin merged 1 commit into
angular:mainfrom
clydin:esbuild/aot-template-diag

Conversation

@clydin

@clydin clydin commented Oct 3, 2023

Copy link
Copy Markdown
Member

To prevent stale Angular template diagnostics from persisting in watch mode (including ng serve), the template diagnostic cache will now be invalidated based on the set of changed external template files. This ensures that the Angular AOT compiler will analyze the template again during the rebuild and clear any fixed errors.

…nal templates change with esbuild builders

To prevent stale Angular template diagnostics from persisting in watch mode (including `ng serve`), the template
diagnostic cache will now be invalidated based on the set of changed external template files. This ensures that
the Angular AOT compiler will analyze the template again during the rebuild and clear any fixed errors.
@clydin clydin added the target: major This PR is targeted for the next major release label Oct 3, 2023
@clydin clydin linked an issue Oct 3, 2023 that may be closed by this pull request
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 3, 2023
@clydin
clydin requested a review from alan-agius4 October 3, 2023 22:00
@alan-agius4 alan-agius4 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 4, 2023
@clydin
clydin merged commit 83020fc into angular:main Oct 4, 2023
@clydin
clydin deleted the esbuild/aot-template-diag branch October 4, 2023 13:55
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 4, 2023
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 target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"ng serve" requires restart when template error is fixed

2 participants