Skip to content

Commit dbd7a05

Browse files
committed
fix: validate debugBrk + hmr combo as we cannot force restarts and avoid restarts at the same time
1 parent 72ab337 commit dbd7a05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/commands/debug.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ export class DebugPlatformCommand extends ValidatePlatformCommandBase implements
120120
this.$errors.fail("--release flag is not applicable to this command");
121121
}
122122

123+
if (this.$options.hmr && this.$options.debugBrk) {
124+
this.$errors.fail("Expected exactly one of the --debug-brk and --hmr options");
125+
}
126+
123127
const minSupportedWebpackVersion = this.$options.hmr ? LiveSyncCommandHelper.MIN_SUPPORTED_WEBPACK_VERSION_WITH_HMR : null;
124128
this.$bundleValidatorHelper.validate(minSupportedWebpackVersion);
125129

0 commit comments

Comments
 (0)