Commit dfeb37f
committed
perf(@angular/build): directly check code for Angular partial linking
To more completely avoid having to load any Angular compiler linking code
when analyzing for code transformations during a build, the declaration
function checks are now performed directly. This is in contrast to the
previous behavior that required importing the linker code to use a helper
function included in the `@angular/compiler-cli` package. Avoiding the
need to load and parse a potentially large amount of code to perform the
check can improve performance for the cases where no linking is required.
To ensure the check stays up to date and while the list of function names
rarely changes, the linker must always use the existing function name
prefix (`ɵɵngDeclare`) for any declaration functions.1 parent 233495f commit dfeb37f
File tree
1 file changed
+12
-16
lines changed- packages/angular/build/src/tools/esbuild
1 file changed
+12
-16
lines changedLines changed: 12 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
| |||
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
| |||
0 commit comments