Skip to content

[0.89][LOCAL] Use metro:runtime for asyncRequireModulePath - #59874

Merged
robhogan merged 1 commit into
0.89-stablefrom
robhogan/89-metro-runtime-async-require
Nov 9, 2026
Merged

robhogan merged 1 commit into
0.89-stablefrom
robhogan/89-metro-runtime-async-require

Conversation

@robhogan

@robhogan robhogan commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Picks #58584 to 0.89, see reactwg/react-native-releases#1508

Changelog:

[GENERAL] [FIXED] - Make Metro's transform cache shareable across checkouts by pointing asyncRequireModulePath at metro:runtime/modules/asyncRequire instead of an absolute path

Test Plan:

See #58584 for the original test plan. On this branch, with Metro 0.87.2, I built a temporary entry point containing a dynamic import() using Metro.runBuild and RNTester's metro.config.js. The build succeeds and the bundle includes metro-runtime/src/modules/asyncRequire.js.

yarn eslint packages/metro-config/src/index.flow.js

Passes. packages/metro-config has no Jest tests.

@robhogan
robhogan added this pull request to stack #59876 November 9, 2026 08:21
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 9, 2026
@robhogan robhogan changed the title robhogan/89 metro runtime async require [0.89][LOCAL] Use metro:runtime for asyncRequireModulePath Nov 9, 2026
@robhogan
robhogan marked this pull request as ready for review November 9, 2026 08:21
@robhogan
robhogan merged commit 2f9082f into 0.89-stable Nov 9, 2026
204 of 207 checks passed
@robhogan
robhogan deleted the robhogan/89-metro-runtime-async-require branch November 9, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Pick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants