From 41d875910bff7df4767b63b531e238a969c85624 Mon Sep 17 00:00:00 2001 From: Jasper De Moor Date: Fri, 24 Aug 2018 13:47:18 -0700 Subject: [PATCH] Exit process if it's just a single build (#1933) --- packages/core/parcel-bundler/src/Bundler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/parcel-bundler/src/Bundler.js b/packages/core/parcel-bundler/src/Bundler.js index 0854d970a31..87057e0d577 100644 --- a/packages/core/parcel-bundler/src/Bundler.js +++ b/packages/core/parcel-bundler/src/Bundler.js @@ -335,7 +335,7 @@ class Bundler extends EventEmitter { if (this.options.throwErrors && !this.hmr) { throw err; - } else if (process.env.NODE_ENV === 'production' || !initialised) { + } else if (!this.options.watch || !initialised) { await this.stop(); process.exit(1); }