Commit c7eb5e7
committed
fix(@angular/build): respect sourceMap configuration in dev server
The dev server was ignoring the `sourceMap` configuration from angular.json,
always injecting inline source maps into all served files. This affected both
CSS (hardcoded `devSourcemap: true`) and JavaScript (prebundle transformer
hardcoded `sourcemap: true`), causing 2-3x file size inflation even when
source maps were explicitly disabled.
The fix passes the normalized `scripts` and `styles` source map settings
through to the Vite configuration, so that `css.devSourcemap` and the
prebundle transformer respect the user's `sourceMap` setting.
Closes #313311 parent 7fbc715 commit c7eb5e7
2 files changed
+9
-5
lines changedLines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
187 | | - | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
428 | 430 | | |
429 | 431 | | |
430 | 432 | | |
| 433 | + | |
431 | 434 | | |
432 | 435 | | |
433 | 436 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
178 | | - | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| |||
0 commit comments