Commit 9431d55
fix(@ngtools/webpack): avoid re-running full emit when there wasn't a an emit
There can be a number of reason why `_emitSkipped` is set to true these are:
- Errors have been encountered
- Changes are outside of TS compilations such as HTML and CSS in JIT mode
We only want to run a full JIT emit when;
- There hasn't been a success emit
- When a large number of files have changed
- First run
If a subsequent JIT build fails we shouldn't do a full emit either as we will transpile only the files that changes after the success build
https://github.com/angular/angular-cli/blob/64243919c10c33775be71010efd5ae69622a728f/packages/ngtools/webpack/src/angular_compiler_plugin.ts#L1029-L1031
Fixes angular#147751 parent d7a0a69 commit 9431d55
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| |||
1196 | 1199 | | |
1197 | 1200 | | |
1198 | 1201 | | |
1199 | | - | |
| 1202 | + | |
1200 | 1203 | | |
1201 | 1204 | | |
1202 | 1205 | | |
1203 | 1206 | | |
1204 | 1207 | | |
1205 | 1208 | | |
1206 | 1209 | | |
| 1210 | + | |
1207 | 1211 | | |
1208 | 1212 | | |
1209 | 1213 | | |
| |||
0 commit comments