@@ -128,20 +128,10 @@ export class PreviewAppLiveSyncService implements IPreviewAppLiveSyncService {
128128 const platformData = this . $platformsData . getPlatformData ( platform , projectData ) ;
129129 const clonedFiles = _ . cloneDeep ( filesToSyncMap [ platform ] ) ;
130130 const filesToSync = _ . map ( clonedFiles , fileToSync => {
131- const result = path . join ( platformData . appDestinationDirectoryPath , APP_FOLDER_NAME , path . relative ( projectData . getAppDirectoryPath ( ) , fileToSync ) ) ;
132- console . log ( result ) ;
133- return result ;
134- } ) ;
135-
136- // console.log("####### FILES TO SYNC!!!!!!! %%%%%%%% ", filesToSync, data.projectDir, platformData);
137- // console.log("####### appDestinationDirectoryPath!!!! ", platformData.appDestinationDirectoryPath);
138- // console.log("hjfjdjgdfjgjfgjgj !!!!! ", projectData.getAppDirectoryPath());
139-
140- // filesToSync = filesToSync.map(fileToSync => {
141- // console.log("appDestinationDirectoryPath !!!! ", platformData.appDestinationDirectoryPath);
142- // console.log("relative path!!!!!", path.relative(projectData.getAppDirectoryPath(), fileToSync));
143- // return result;
144- // });
131+ const result = path . join ( platformData . appDestinationDirectoryPath , APP_FOLDER_NAME , path . relative ( projectData . getAppDirectoryPath ( ) , fileToSync ) ) ;
132+ return result ;
133+ } ) ;
134+
145135 promise = this . syncFilesForPlatformSafe ( data , { filesToSync } , platform ) ;
146136 await promise ;
147137
@@ -151,8 +141,10 @@ export class PreviewAppLiveSyncService implements IPreviewAppLiveSyncService {
151141 await Promise . all ( _ . map ( devices , async ( previewDevice : Device ) => {
152142 const status = await this . $hmrStatusService . getHmrStatus ( previewDevice . id , platformHmrData . hash ) ;
153143 if ( status === HmrConstants . HMR_ERROR_STATUS ) {
154- // TODO: SET useHotModuleReload: false,
144+ const originalUseHotModuleReload = data . useHotModuleReload ;
145+ data . useHotModuleReload = false ;
155146 await this . syncFilesForPlatformSafe ( data , { filesToSync : platformHmrData . fallbackFiles } , platform , previewDevice . id ) ;
147+ data . useHotModuleReload = originalUseHotModuleReload ;
156148 }
157149 } ) ) ;
158150 }
0 commit comments