From 8274184e1c6fa43cc5101018b6fa86fd636a90ba Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 26 Sep 2024 13:03:13 +0000 Subject: [PATCH] fix(@angular/build): add `animate` to valid self-closing elements The `` tag, used for SVG animations, was incorrectly treated as a non-self-closing tag by the Angular build process. This resulted in errors during the build, as the parser expected a closing `` tag even when unnecessary. Closes #28502 (cherry picked from commit dd499499c7e5aeb959cdb1a4442493091c07d667) --- .../build/src/utils/index-file/valid-self-closing-tags.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/angular/build/src/utils/index-file/valid-self-closing-tags.ts b/packages/angular/build/src/utils/index-file/valid-self-closing-tags.ts index bd85b6ee00dd..a67eedf21f30 100644 --- a/packages/angular/build/src/utils/index-file/valid-self-closing-tags.ts +++ b/packages/angular/build/src/utils/index-file/valid-self-closing-tags.ts @@ -23,6 +23,7 @@ export const VALID_SELF_CLOSING_TAGS = new Set([ 'track', 'wbr', /** SVG tags */ + 'animate', 'circle', 'ellipse', 'line',