Skip to content

Commit 296dbe9

Browse files
author
Dimitar Tachev
authored
Merge pull request #4600 from NativeScript/tachev/fix-debug-brk-hmr
fix: do not use HMR when debugBrk is set as we will restart the app on each LiveSync
2 parents 3a3d3bf + 8e108ea commit 296dbe9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/options.ts

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ export class Options {
4848
this.argv.bundle = undefined;
4949
this.argv.hmr = false;
5050
}
51+
52+
if (this.argv.debugBrk) {
53+
// we cannot use HMR along with debug-brk because we have to restart the app
54+
// on each livesync in order to stop and allow debugging on app start
55+
this.argv.hmr = false;
56+
}
5157
}
5258

5359
constructor(private $errors: IErrors,

0 commit comments

Comments
 (0)