Skip to content

perf: warm the first development bundle during native runs - #751

Open
roryabraham wants to merge 1 commit into
callstackincubator:mainfrom
roryabraham:native-run-bundle-warmup
Open

roryabraham wants to merge 1 commit into
callstackincubator:mainfrom
roryabraham:native-run-bundle-warmup

Conversation

@roryabraham

Copy link
Copy Markdown

Summary

Introduce an optional native-run bundler hook. After iOS or Android target selection and validation, Rock requests compilation for that platform before the native build, waits for server startup before launch, and releases terminal controls after launch. Xcode's packager launcher is suppressed only for that early-start path. Native launch can still proceed if the server fails to start; Rock reports that error afterwards.

The Re.Pack integration detects the warmup capability before opting in and asks an already-running, same-project server to warm the same platform. Metro and older Re.Pack releases keep their existing post-launch startup.

Rock issue: #750
Companion Re.Pack issue: callstack/repack#1540
Companion Re.Pack PR: callstack/repack#1541

Validation

  • Built all packages at current Rock main.
  • Passed 99 tests across config, Android and Apple helpers, including an iOS run across two simulators and Android start/build/launch ordering. The native commands were mocked.
  • Verified the installed Re.Pack 5.1.3 stays on the legacy path. Linked the compatible Re.Pack checkout and verified iOS compiled on a new server and Android compiled on the same running server, both before their first bundle request.

@vercel

vercel Bot commented Dec 5, 2026

Copy link
Copy Markdown

@roryabraham is attempting to deploy a commit to the Callstack Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant