Skip to content

Commit 5e9d520

Browse files
DimitarTachevFatme
DimitarTachev
authored andcommitted
fix: stop sending platform specific extensions in preview
1 parent e26d457 commit 5e9d520

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

+1-5
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,9 @@ export class PreviewAppLiveSyncService implements IPreviewAppLiveSyncService {
119119
.map(file => {
120120
const projectFileInfo = this.$projectFilesProvider.getProjectFileInfo(file, platformData.normalizedPlatformName, null);
121121
const relativePath = path.relative(platformsAppFolderPath, file);
122-
const extName = path.extname(relativePath);
123-
const baseName = projectFileInfo.onDeviceFileName.split(extName)[0];
124-
const newFileName = `${baseName}.${platformData.normalizedPlatformName.toLowerCase()}${extName}`;
125-
126122
const filePayload: FilePayload = {
127123
event: PreviewSdkEventNames.CHANGE_EVENT_NAME,
128-
file: path.join(path.dirname(relativePath), newFileName),
124+
file: path.join(path.dirname(relativePath), projectFileInfo.onDeviceFileName),
129125
binary: isTextOrBinary.isBinarySync(file),
130126
fileContents: ""
131127
};

0 commit comments

Comments
 (0)