Commit 9b7b2f0
fix(@ngtools/webpack): add local dts file as dependencies
We now add non node_modules `.d.ts` as a dependency of the main chunk. This is important under Ivy, because NG metadata is now part of the declarations files ex:
```ts
export declare class FooComponent implements OnInit {
constructor();
ngOnInit(): void;
static ɵfac: i0.ɵɵFactoryDef<FooComponent>;
static ɵcmp: i0.ɵɵComponentDefWithMeta<FooComponent, "lib-foo", never, {}, {}, never>;
}
```
Previously such files were not being added as dependency and such files didn't get invalidated when changed.
Closes #16920 and closes #169211 parent a5bc1cd commit 9b7b2f0
File tree
2 files changed
+76
-9
lines changed- packages
- angular_devkit/build_angular/test/browser
- ngtools/webpack/src
2 files changed
+76
-9
lines changedLines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
271 | 306 | | |
272 | 307 | | |
273 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
389 | 402 | | |
390 | 403 | | |
391 | 404 | | |
392 | | - | |
393 | | - | |
394 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
395 | 426 | | |
396 | 427 | | |
397 | 428 | | |
| |||
630 | 661 | | |
631 | 662 | | |
632 | 663 | | |
633 | | - | |
634 | | - | |
| 664 | + | |
635 | 665 | | |
636 | 666 | | |
637 | 667 | | |
| |||
649 | 679 | | |
650 | 680 | | |
651 | 681 | | |
652 | | - | |
| 682 | + | |
653 | 683 | | |
654 | 684 | | |
655 | 685 | | |
| |||
659 | 689 | | |
660 | 690 | | |
661 | 691 | | |
662 | | - | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
663 | 695 | | |
664 | 696 | | |
665 | 697 | | |
| |||
1233 | 1265 | | |
1234 | 1266 | | |
1235 | 1267 | | |
1236 | | - | |
| 1268 | + | |
1237 | 1269 | | |
1238 | 1270 | | |
1239 | 1271 | | |
| |||
0 commit comments