Skip to content

Commit 15c9aa8

Browse files
committed
fix(vite): skip the dev cleartext change check for host projects
Native prepare doesn't write the debug manifest under hostProjectPath, so comparing it there would mark app resources changed on every prepare.
1 parent a399bbd commit 15c9aa8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎lib/services/android-project-service.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,10 @@ export class AndroidProjectService
858858
prepareData: IPrepareData,
859859
projectData: IProjectData,
860860
): Promise<void> {
861+
// Native prepare skips `prepareDevServerAccess` for a host project.
862+
if (this.$options.hostProjectPath) {
863+
return;
864+
}
861865
const manifestPath = this.getDebugManifestPath(projectData);
862866
const current = this.$fs.exists(manifestPath)
863867
? this.$fs.readText(manifestPath)

0 commit comments

Comments
 (0)