Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 28e73a1

Browse files
FatmeSvetoslavTsenov
Fatme
authored andcommitted
fix: don't call twice startSyncFilesTimeout method (#683)
1 parent d89097f commit 28e73a1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/compiler.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,12 @@ exports.runWebpackCompiler = function runWebpackCompiler(config, $projectData, $
8080
return;
8181
}
8282

83-
if (hookArgs.filesToSync && hookArgs.startSyncFilesTimeout) {
84-
hookArgs.filesToSync.push(...message.emittedFiles);
85-
hookArgs.startSyncFilesTimeout(platform);
86-
}
87-
8883
if (hookArgs.filesToSyncMap && hookArgs.startSyncFilesTimeout) {
8984
hookArgs.filesToSyncMap[platform] = message.emittedFiles;
9085
hookArgs.startSyncFilesTimeout(platform);
86+
} else if (hookArgs.filesToSync && hookArgs.startSyncFilesTimeout) {
87+
hookArgs.filesToSync.push(...message.emittedFiles);
88+
hookArgs.startSyncFilesTimeout(platform);
9189
}
9290
}
9391
}

0 commit comments

Comments
 (0)