From e55afdfa1432505c0efaf65d214fdf83406d2d39 Mon Sep 17 00:00:00 2001 From: fatme Date: Wed, 19 Sep 2018 18:47:14 +0300 Subject: [PATCH] chrore: don't prepare the platform when webpack emits changed files on preview command, just send a message to pubnub. --- .../livesync/playground/preview-app-livesync-service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/services/livesync/playground/preview-app-livesync-service.ts b/lib/services/livesync/playground/preview-app-livesync-service.ts index 1b6f68ae41..e3a174448d 100644 --- a/lib/services/livesync/playground/preview-app-livesync-service.ts +++ b/lib/services/livesync/playground/preview-app-livesync-service.ts @@ -31,7 +31,8 @@ export class PreviewAppLiveSyncService implements IPreviewAppLiveSyncService { const startSyncFilesTimeout = async (platform: string) => { await promise .then(async () => { - promise = this.syncFilesForPlatformSafe(data, platform, filesToSyncMap[platform]); + const projectData = this.$projectDataService.getProjectData(data.projectDir); + promise = this.applyChanges(this.$platformsData.getPlatformData(platform, projectData), projectData, filesToSyncMap[platform]); await promise; }); filesToSyncMap[platform] = [];