Skip to content

Support Metro platform extensions for runtime entries#5

Open
V3RON wants to merge 3 commits into
mainfrom
codex/support-platform-extensions
Open

Support Metro platform extensions for runtime entries#5
V3RON wants to merge 3 commits into
mainfrom
codex/support-platform-extensions

Conversation

@V3RON
Copy link
Copy Markdown
Collaborator

@V3RON V3RON commented May 25, 2026

Summary

  • Move the Metro integration files under packages/core/metro.
  • Extract runtime entry filename detection into a pure helper.
  • Read configured Metro platform extensions so index.ios.*, index.android.*, and index.native.* are not treated as runtime names.
  • Add Bun tests for runtime entry filename parsing and platform extension handling.

Assumptions

  • Runtime entry platform variants are provided for all configured platforms, or a base runtime entry exists as a fallback. For example, index.background.ios.ts is paired with index.background.android.ts, or index.background.ts exists.
  • Under those constraints, the generated neutral runtime request can rely on Metro to resolve the correct platform-specific file.

Tests

  • bun --cwd packages/core test

Move Metro integration files under packages/core/metro and extract runtime entry filename handling with Bun tests.
@V3RON V3RON marked this pull request as ready for review May 25, 2026 08:39
…m-extensions

# Conflicts:
#	packages/core/package.json
@V3RON V3RON marked this pull request as draft May 25, 2026 08:43
@V3RON V3RON marked this pull request as ready for review May 25, 2026 08:43
…m-extensions

# Conflicts:
#	bun.lock
#	packages/core/package.json
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.

2 participants