Commit 1d95ebf
committed
fix(@angular/build): support TypeScript isolatedDeclarations option
This change allows the use of TypeScript's isolatedDeclarations compiler
option by conditionally preserving the declaration and composite options
when isolatedDeclarations is enabled.
Previously, the Angular CLI forcefully set both declaration and composite
to false, which prevented the use of isolatedDeclarations as TypeScript
requires at least one of these options to be true when isolatedDeclarations
is set (TS5069 error):
```
✘ [ERROR] TS5069: Option 'isolatedDeclarations' cannot be specified without specifying option 'declaration' or option 'composite'. [plugin angular-compiler]
```1 parent f712361 commit 1d95ebf
File tree
2 files changed
+3
-2
lines changed- packages/angular/build/src/tools
- angular/compilation
- esbuild/angular
2 files changed
+3
-2
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
736 | | - | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
737 | 739 | | |
738 | 740 | | |
739 | 741 | | |
| |||
0 commit comments