Skip to content

Commit 4fbe536

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 3b34307 commit 4fbe536

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
@@ -1334,6 +1334,10 @@ export class AndroidProjectService
13341334
prepareData: IPrepareData,
13351335
projectData: IProjectData,
13361336
): Promise<void> {
1337+
// Native prepare skips `prepareDevServerAccess` for a host project.
1338+
if (this.$options.hostProjectPath) {
1339+
return;
1340+
}
13371341
const manifestPath = this.getDebugManifestPath(projectData);
13381342
const current = this.$fs.exists(manifestPath)
13391343
? this.$fs.readText(manifestPath)

0 commit comments

Comments
 (0)