mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 03:23:57 +08:00
fix(@angular-devkit/build-angular): correctly set ngDevMode
in esbuilder
During development we should not set `ngDevMode` to `true`, as this is expected to be an object literal. Closes #23627
This commit is contained in:
parent
c2c4cac13c
commit
aa83feb373
@ -346,7 +346,7 @@ async function bundleCode(
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
define: {
|
define: {
|
||||||
'ngDevMode': optimizationOptions.scripts ? 'false' : 'true',
|
...(optimizationOptions.scripts ? { 'ngDevMode': 'false' } : undefined),
|
||||||
'ngJitMode': 'false',
|
'ngJitMode': 'false',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user