File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/angular_devkit/build_angular/src/webpack/plugins Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ export function createIvyPlugin(
26
26
} ;
27
27
28
28
if ( tsConfig . options . target === undefined || tsConfig . options . target < ScriptTarget . ES2022 ) {
29
- tsConfig . options . target = ScriptTarget . ES2022 ;
29
+ compilerOptions . target = ScriptTarget . ES2022 ;
30
30
// If 'useDefineForClassFields' is already defined in the users project leave the value as is.
31
31
// Otherwise fallback to false due to https://github.com/microsoft/TypeScript/issues/45995
32
32
// which breaks the deprecated `@Effects` NGRX decorator and potentially other existing code as well.
33
- tsConfig . options . useDefineForClassFields ??= false ;
33
+ compilerOptions . useDefineForClassFields ??= false ;
34
34
35
35
wco . logger . warn (
36
36
'TypeScript compiler options "target" and "useDefineForClassFields" are set to "ES2022" and ' +
You can’t perform that action at this time.
0 commit comments