@@ -42,14 +42,14 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
42
42
if ( message . emittedFiles ) {
43
43
if ( isFirstWebpackWatchCompilation ) {
44
44
isFirstWebpackWatchCompilation = false ;
45
- this . expectedHash = message . hash ;
45
+ this . expectedHash = message . hash ;
46
46
return ;
47
47
}
48
48
49
49
let result ;
50
50
51
51
if ( prepareData . hmr ) {
52
- result = this . getUpdatedEmittedFiles ( message . emittedFiles , message . chunkFiles , message . hash ) ;
52
+ result = this . getUpdatedEmittedFiles ( message . emittedFiles , message . chunkFiles , message . hash ) ;
53
53
} else {
54
54
result = { emittedFiles : message . emittedFiles , fallbackFiles : < string [ ] > [ ] , hash : "" } ;
55
55
}
@@ -219,7 +219,7 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
219
219
} else if ( this . $hostInfo . isWindows ) {
220
220
const minWebpackPluginWithWinSnapshotsVersion = "1.3.0" ;
221
221
const installedWebpackPluginVersion = await this . $packageInstallationManager . getInstalledDependencyVersion ( WEBPACK_PLUGIN_NAME , projectData . projectDir ) ;
222
- const hasWebpackPluginWithWinSnapshotsSupport = ! ! installedWebpackPluginVersion ? semver . gte ( installedWebpackPluginVersion , minWebpackPluginWithWinSnapshotsVersion ) : true ;
222
+ const hasWebpackPluginWithWinSnapshotsSupport = ! ! installedWebpackPluginVersion ? semver . gte ( semver . coerce ( installedWebpackPluginVersion ) , minWebpackPluginWithWinSnapshotsVersion ) : true ;
223
223
if ( ! hasWebpackPluginWithWinSnapshotsSupport ) {
224
224
this . $errors . fail ( `In order to generate Snapshots on Windows, please upgrade your Webpack plugin version (npm i nativescript-dev-webpack@latest).` ) ;
225
225
}
0 commit comments