From 8e108ead35a0e43790ada4bf064833c4c3b6ab24 Mon Sep 17 00:00:00 2001 From: DimitarTachev Date: Wed, 8 May 2019 18:04:19 +0300 Subject: [PATCH] fix: do not send hot updates when debugBrk is set as we will restart the app on each LiveSync anyway --- lib/options.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/options.ts b/lib/options.ts index 63c0f9bb74..0094c9e31a 100644 --- a/lib/options.ts +++ b/lib/options.ts @@ -48,6 +48,12 @@ export class Options { this.argv.bundle = undefined; this.argv.hmr = false; } + + if (this.argv.debugBrk) { + // we cannot use HMR along with debug-brk because we have to restart the app + // on each livesync in order to stop and allow debugging on app start + this.argv.hmr = false; + } } constructor(private $errors: IErrors,