perf(core): chain template instructions (#51546)

With the new control flow and defer blocks it'll be common for several template instructions to be declare one after another. These changes add support for chaining to the `template` instruction which will allow us to save some bytes.

PR Close #51546
This commit is contained in:
Kristiyan Kostadinov
2023-08-29 09:31:29 +02:00
committed by Jessica Janiuk
parent 4dabcad557
commit 685d01e106
26 changed files with 34 additions and 62 deletions
@@ -113,6 +113,7 @@ const CHAINABLE_INSTRUCTIONS = new Set([
R3.textInterpolate7,
R3.textInterpolate8,
R3.textInterpolateV,
R3.templateCreate,
]);
/**
@@ -36,6 +36,7 @@ const CHAINABLE = new Set([
R3.elementContainer,
R3.listener,
R3.syntheticHostListener,
R3.templateCreate,
]);
/**