Skip to content

Commit 9fca19d

Browse files
author
Fatme
authored
Merge pull request #3911 from NativeScript/fatme/prepare-bundle
chrore: don't prepare the platform when webpack emits changed files on preview command - just send a message to pubnub.
2 parents 4480df2 + e55afdf commit 9fca19d

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)