Skip to content

Commit

Permalink
fix(angular): prevent false positive validation due to option default…
Browse files Browse the repository at this point in the history
… value in dev-server executor (#22606)
  • Loading branch information
leosvelperez committed Apr 2, 2024
1 parent 120cde6 commit 2aed31f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function validateOptions(options: Schema): void {
const { major: angularMajorVersion, version: angularVersion } =
getInstalledAngularVersionInfo();

if (lt(angularVersion, '16.1.0') && options.forceEsbuild !== undefined) {
if (lt(angularVersion, '16.1.0') && options.forceEsbuild) {
throw new Error(stripIndents`The "forceEsbuild" option is only supported in Angular >= 16.1.0. You are currently using "${angularVersion}".
You can resolve this error by removing the "forceEsbuild" option or by migrating to Angular 16.1.0.`);
}
Expand Down

0 comments on commit 2aed31f

Please sign in to comment.