Commit 03a420b
committed
refactor(@angular/build): use
The internal `ngHmrMode` define value was previously available to application
code and third-party modules that were not prebundled. To ensure that the
value is propagated to all relevant code served by the development server,
the `ngHmrMode` define is now used during the Vite prebundling phase. This
allows any prebundled dependencies to also leverage the `ngHmrMode` value.
The framework may, for instance, use the value to provide additional development
time diagnostics.
(cherry picked from commit 5078c8b)ngHmrMode define for Vite prebundling1 parent 00cd0d1 commit 03a420b
File tree
1 file changed
+4
-1
lines changed- packages/angular/build/src/builders/dev-server
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
452 | 455 | | |
453 | 456 | | |
454 | 457 | | |
| |||
0 commit comments