Commit 955a60d
committed
fix(@angular-devkit/build-angular): avoid extra tick in SSR builds
In SSR applications, an unnecessary event loop tick during server startup could lead to an incorrect platform being initialized.
This change introduces an `ngJitMode` define, which is set to `false` during AOT builds. This allows for the JIT-specific code paths to not be followed, preventing the async operations that caused the extra tick. This ensures that the server platform is correctly and synchronously initialized.1 parent 5fccf7c commit 955a60d
File tree
1 file changed
+1
-0
lines changed- packages/angular_devkit/build_angular/src/builders/server
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| |||
0 commit comments