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

(cherry picked from commit aa83feb)
  • Loading branch information
alan-agius4 authored and clydin committed Jul 22, 2022
1 parent 36da9d7 commit 94b444e
Showing 1 changed file with 1 addition and 1 deletion.
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 94b444e

Please sign in to comment.