-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit 081b625
fix(@angular-devkit/build-angular): support proxy configuration array-form in esbuild builder
When using the Webpack-based browser application builder with the development server, the
proxy configuration can be in an array form when using the `proxyConfig` option. This is unfortunately
not natively supported by the Vite development server used when building with the esbuild-based
browser application builder. However, the array form can be transformed into the object form.
This transformation allows for the array form of the proxy configuration to be used by both
development server implementations.
(cherry picked from commit 779c969)1 parent abe3d73 commit 081b625
File tree
3 files changed
+89
-15
lines changed- packages/angular_devkit/build_angular/src/builders/dev-server
- tests/options
3 files changed
+89
-15
lines changedLines changed: 63 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | - | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
19 | 23 |
| |
20 | 24 |
| |
21 | 25 |
| |
| |||
26 | 30 |
| |
27 | 31 |
| |
28 | 32 |
| |
33 | + | ||
29 | 34 |
| |
30 | 35 |
| |
31 | 36 |
| |
32 | 37 |
| |
33 | 38 |
| |
34 | 39 |
| |
35 | - | ||
40 | + | ||
36 | 41 |
| |
37 | 42 |
| |
38 | 43 |
| |
| |||
43 | 48 |
| |
44 | 49 |
| |
45 | 50 |
| |
46 | - | ||
51 | + | ||
47 | 52 |
| |
48 | 53 |
| |
49 | 54 |
| |
50 | 55 |
| |
51 | 56 |
| |
52 | - | ||
57 | + | ||
58 | + | ||
59 | + | ||
53 | 60 |
| |
54 | - | ||
61 | + | ||
62 | + | ||
55 | 63 |
| |
56 | 64 |
| |
57 | 65 |
| |
58 | 66 |
| |
59 | - | ||
67 | + | ||
68 | + | ||
60 | 69 |
| |
61 | 70 |
| |
62 | 71 |
| |
63 | 72 |
| |
64 | 73 |
| |
65 | 74 |
| |
66 | - | ||
75 | + | ||
76 | + | ||
77 | + | ||
67 | 78 |
| |
68 | 79 |
| |
69 | 80 |
| |
70 | 81 |
| |
71 | 82 |
| |
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
72 | 89 |
| |
73 | 90 |
| |
74 | 91 |
| |
75 | 92 |
| |
93 | + | ||
94 | + | ||
76 | 95 |
| |
77 | 96 |
| |
78 | - | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + | ||
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
127 | + | ||
128 | + | ||
79 | 129 |
| |
80 | - | ||
130 | + | ||
81 | 131 |
| |
82 | 132 |
| |
83 | - | ||
84 | - | ||
133 | + | ||
134 | + | ||
85 | 135 |
| |
86 | 136 |
| |
137 | + | ||
138 | + | ||
87 | 139 |
| |
88 | 140 |
| |
89 | 141 |
| |
|
Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
176 | + | ||
177 | + | ||
178 | + | ||
179 | + | ||
180 | + | ||
181 | + | ||
182 | + | ||
183 | + | ||
184 | + | ||
185 | + | ||
186 | + | ||
187 | + | ||
188 | + | ||
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | ||
193 | + | ||
194 | + | ||
195 | + | ||
196 | + | ||
197 | + | ||
198 | + | ||
199 | + | ||
176 | 200 |
| |
177 | 201 |
| |
178 | 202 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | - | ||
21 | + | ||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| |||
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
184 | + | ||
184 | 185 |
| |
185 | - | ||
186 | - | ||
187 | - | ||
188 | 186 |
| |
189 | 187 |
| |
190 | 188 |
| |
|
0 commit comments