diff --git a/CHANGELOG.md b/CHANGELOG.md
index 51ea0f0d655..8b91f04e4cf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,13 @@
+
+
+# 3.3.9 (2019-09-17)
+
+[Full Changelog](https://github.com/webpack/webpack-cli/compare/v3.3.8...v3.3.9)
+
+## Fix
+
+- use process.exitCode instead of process.exit in compilerCallback ([ee001bd](https://github.com/webpack/webpack-cli/commit/ee001bd))
+
# 3.3.8 (2019-09-05)
diff --git a/bin/cli.js b/bin/cli.js
index 3d82cabad93..79f667b2334 100755
--- a/bin/cli.js
+++ b/bin/cli.js
@@ -314,7 +314,8 @@ For more information, see https://webpack.js.org/api/cli/.`);
lastHash = null;
console.error(err.stack || err);
if (err.details) console.error(err.details);
- process.exit(1); // eslint-disable-line
+ process.exitCode = 1;
+ return;
}
if (outputOptions.json) {
stdout.write(JSON.stringify(stats.toJson(outputOptions), null, 2) + "\n");
diff --git a/package-lock.json b/package-lock.json
index 5e7694fc0a3..9cd975827ff 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "webpack-cli",
- "version": "3.3.8",
+ "version": "3.3.9",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 94556aa0d16..ab381d646e4 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "webpack-cli",
- "version": "3.3.8",
+ "version": "3.3.9",
"description": "CLI for webpack & friends",
"license": "MIT",
"repository": {