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); }