mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 11:03:53 +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: {
|
||||
'ngDevMode': optimizationOptions.scripts ? 'false' : 'true',
|
||||
...(optimizationOptions.scripts ? { 'ngDevMode': 'false' } : undefined),
|
||||
'ngJitMode': 'false',
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user