From 851ef47c3c5d883dad3922ff0e48eee03c749ac0 Mon Sep 17 00:00:00 2001 From: Jasper De Moor Date: Fri, 24 Aug 2018 13:22:57 -0700 Subject: [PATCH] Exit process if it's just a single build --- src/Bundler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundler.js b/src/Bundler.js index 0854d970a31..87057e0d577 100644 --- a/src/Bundler.js +++ b/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); }