Skip to content

Commit 8c11335

Browse files
committed
fix: validate webpack version on tns run android --hmr
1 parent 6592819 commit 8c11335

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/helpers/livesync-command-helper.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export class LiveSyncCommandHelper implements ILiveSyncCommandHelper {
2+
private static MIN_SUPPORTED_WEBPACK_VERSION_WITH_HMR = "0.17.0";
23

34
constructor(private $platformService: IPlatformService,
45
private $projectData: IProjectData,
@@ -133,7 +134,8 @@ export class LiveSyncCommandHelper implements ILiveSyncCommandHelper {
133134
result[availablePlatform.toLowerCase()] = validateOutput;
134135
}
135136

136-
this.$bundleValidatorHelper.validate();
137+
const minSupportedWebpackVersion = this.$options.hmr ? LiveSyncCommandHelper.MIN_SUPPORTED_WEBPACK_VERSION_WITH_HMR : null;
138+
this.$bundleValidatorHelper.validate(minSupportedWebpackVersion);
137139

138140
return result;
139141
}

0 commit comments

Comments
 (0)