mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jessica Janiuk
parent
4dabcad557
commit
685d01e106
@@ -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,
|
||||
]);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user