Skip to content

fix(metro): return async function instead of a promise#113

Merged
V3RON merged 2 commits intomainfrom
fix/metro-83-2
Sep 29, 2025
Merged

fix(metro): return async function instead of a promise#113
V3RON merged 2 commits intomainfrom
fix/metro-83-2

Conversation

@V3RON
Copy link
Copy Markdown
Contributor

@V3RON V3RON commented Sep 29, 2025

Metro 0.83.2 no longer supports configs as Promises, so Rozenite must provide a workaround by returning an async function instead of a Promise. This change restores the ability to bundle JavaScript when using React Native 0.81.


Note

Change withRozenite to return an async function producing the Metro config instead of a Promise, restoring compatibility with Metro 0.83.2.

  • Metro config factory:
    • Change withRozenite in packages/metro/src/index.ts to return an async function () => Promise<T> instead of a Promise<T>.
    • Move config resolution and setup inside the returned function; behavior (resolver, server middleware, enhanceMetroConfig, dev package wiring) preserved.
  • Versioning:
    • Add .nx/version-plans/version-plan-1759132952412.md marking @rozenite/metro as prerelease with note about Metro 0.83.2 config support.

Written by Cursor Bugbot for commit 3ef4bf7. This will update automatically on new commits. Configure here.

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rozenite Ready Ready Preview Comment Sep 29, 2025 8:06am

@V3RON V3RON merged commit 88065c2 into main Sep 29, 2025
4 checks passed
@V3RON V3RON deleted the fix/metro-83-2 branch September 29, 2025 09:06
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