Commit 9ee6986
committed
refactor(@angular-devkit/build-angular): remove as any usage in karma builder
Refactor the Karma builder's `execute` function to directly handle dynamic
imports within conditional blocks. This eliminates the need for `getExecuteWithBuilder`
and the resulting union types that required `as any` casting.
This improves type safety by allowing TypeScript to verify the arguments passed
to the specific builder implementations (Esbuild vs Webpack).1 parent e865c64 commit 9ee6986
File tree
1 file changed
+10
-31
lines changed- packages/angular_devkit/build_angular/src/builders/karma
1 file changed
+10
-31
lines changedLines changed: 10 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 45 | + | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| |||
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
62 | | - | |
63 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
| 69 | + | |
66 | 70 | | |
67 | | - | |
68 | | - | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | 174 | | |
196 | 175 | | |
197 | 176 | | |
| |||
0 commit comments