Skip to content

Commit 2e2d86c

Browse files
chore(mobile): e2e Metro serves no lazy chunks
On the pool's Android emulators, lazily fetched chunks for dynamic import() sometimes arrived broken and threw SyntaxErrors, which the app reported as a share import failure on launch. Release builds have no lazy chunks either. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent df4132b commit 2e2d86c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/mobile-e2e.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ async function main() {
224224
],
225225
{
226226
cwd: NodePath.join(REPO_ROOT, "apps/mobile"),
227-
env: { ...NodeProcess.env, APP_VARIANT: "development", CI: "1" },
227+
// Lazily fetched chunks (dynamic import()) sometimes arrive broken on the pool's Android
228+
// emulators and throw SyntaxErrors; release builds have no lazy chunks either.
229+
env: { ...NodeProcess.env, APP_VARIANT: "development", CI: "1", EXPO_NO_METRO_LAZY: "1" },
228230
// The app's console output arrives through Metro; keep it with the run.
229231
stdio: [
230232
"ignore",

0 commit comments

Comments
 (0)