Skip to content

Commit e55afdf

Browse files
committed
chrore: don't prepare the platform when webpack emits changed files on preview command, just send a message to pubnub.
1 parent 7c9c635 commit e55afdf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/services/livesync/playground/preview-app-livesync-service.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export class PreviewAppLiveSyncService implements IPreviewAppLiveSyncService {
3131
const startSyncFilesTimeout = async (platform: string) => {
3232
await promise
3333
.then(async () => {
34-
promise = this.syncFilesForPlatformSafe(data, platform, filesToSyncMap[platform]);
34+
const projectData = this.$projectDataService.getProjectData(data.projectDir);
35+
promise = this.applyChanges(this.$platformsData.getPlatformData(platform, projectData), projectData, filesToSyncMap[platform]);
3536
await promise;
3637
});
3738
filesToSyncMap[platform] = [];

0 commit comments

Comments
 (0)