Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): correctly set ngDevMode in esbu…
Browse files Browse the repository at this point in the history
…ilder

During development we should not set `ngDevMode` to `true`, as this is expected to be an object literal.

Closes #23627
  • Loading branch information
alan-agius4 authored and clydin committed Jul 22, 2022
1 parent c2c4cac commit aa83feb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ async function bundleCode(
),
],
define: {
'ngDevMode': optimizationOptions.scripts ? 'false' : 'true',
...(optimizationOptions.scripts ? { 'ngDevMode': 'false' } : undefined),
'ngJitMode': 'false',
},
});
Expand Down

0 comments on commit aa83feb

Please sign in to comment.