Commit 365cce8
fix(@angular/build): preserve coverage ignore comments in development
When script optimization is disabled, set esbuild `legalComments` to 'inline'
to prevent it from moving ignore comments to the end of the file. This ensures
that coverage tools (like Istanbul and V8) can find the comments in place
and correctly associate them with the code they are supposed to ignore.
(cherry picked from commit 829bdc6)1 parent 7a27774 commit 365cce8
File tree
1 file changed
+1
-1
lines changed- packages/angular/build/src/tools/esbuild
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| |||
0 commit comments