-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit 13b6782
committed
fix(@angular/build): allow disabling sourcemaps in the dev server
This change introduces the ability to disable sourcemaps when running the development server.
A new Vite plugin has been added to remove sourcemap comments from generated assets. The dev server's configuration has been updated to conditionally apply this plugin and control CSS sourcemap generation based on the project's sourceMap setting.
Closes #31331 1 parent 44d9539 commit 13b6782
File tree
5 files changed
+104
-28
lines changed- packages/angular/build/src
- builders/dev-server
- tests/behavior
- vite
- tools/vite/plugins
5 files changed
+104
-28
lines changedLines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | - | ||
134 | - | ||
135 | - | ||
133 | + | ||
134 | + | ||
135 | + | ||
136 | + | ||
137 | + | ||
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
441 | 443 | | |
442 | 444 | | |
443 | 445 | | |
446 | + | ||
444 | 447 | | |
445 | 448 | | |
446 | 449 | | |
| |||
Lines changed: 33 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | - | ||
11 | + | ||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | + | ||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
155 | + | ||
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
| |||
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
177 | + | ||
178 | + | ||
179 | + | ||
180 | + | ||
181 | + | ||
182 | + | ||
183 | + | ||
184 | + | ||
185 | + | ||
186 | + | ||
187 | + | ||
188 | + | ||
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | ||
193 | + | ||
194 | + | ||
195 | + | ||
196 | + | ||
197 | + | ||
198 | + | ||
199 | + | ||
200 | + | ||
201 | + | ||
202 | + | ||
203 | + | ||
204 | + | ||
175 | 205 | | |
176 | 206 | | |
177 | 207 | | |
| |||
183 | 213 | | |
184 | 214 | | |
185 | 215 | | |
186 | - | ||
216 | + | ||
187 | 217 | | |
188 | 218 | | |
189 | 219 | | |
| |||
220 | 250 | | |
221 | 251 | | |
222 | 252 | | |
223 | - | ||
224 | - | ||
225 | - | ||
226 | - | ||
227 | - | ||
228 | - | ||
229 | - | ||
230 | - | ||
231 | - | ||
232 | - | ||
233 | - | ||
234 | - | ||
235 | - | ||
236 | - | ||
237 | - | ||
238 | - | ||
239 | - | ||
240 | - | ||
241 | - | ||
242 | - | ||
243 | - | ||
244 | - | ||
245 | - | ||
253 | + | ||
246 | 254 | | |
247 | 255 | | |
248 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | + | ||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
0 commit comments