From adb4e9d419d4f51f9a45fe5fbca06349a6881de8 Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Mon, 15 Apr 2024 19:24:59 +0200 Subject: [PATCH] fix(webpack): set exitCode if the configuration failed (#10327) fixes #10314 --- packages/webpack5/src/bin/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/webpack5/src/bin/index.ts b/packages/webpack5/src/bin/index.ts index 5fa8b394e..47efb946a 100644 --- a/packages/webpack5/src/bin/index.ts +++ b/packages/webpack5/src/bin/index.ts @@ -83,6 +83,7 @@ program if (!configuration) { console.log('No configuration!'); + process.exitCode = 1; return; }