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

Commit 06fe266

Browse files
author
Dimitar Kerezov
committed
chore(livesync): make code sync
1 parent b4f96be commit 06fe266

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: lib/before-watch.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = function ($mobileHelper, $projectData, hookArgs) {
55
const appFilesUpdaterOptions = hookArgs.config.appFilesUpdaterOptions;
66
if (appFilesUpdaterOptions.bundle) {
77
const platforms = hookArgs.config.platforms;
8-
platforms.forEach(platform => {
8+
return Promise.all(platforms.map(platform => {
99
const env = hookArgs.config.env || {};
1010
const config = {
1111
env,
@@ -14,8 +14,8 @@ module.exports = function ($mobileHelper, $projectData, hookArgs) {
1414
watch: true
1515
};
1616

17-
runWebpackCompiler(config, $mobileHelper, $projectData, hookArgs);
18-
});
17+
return runWebpackCompiler(config, $mobileHelper, $projectData, hookArgs);
18+
}));
1919
}
2020
}
2121
}

0 commit comments

Comments
 (0)