Commit acb5d05
committed
Use a module request for asyncRequireModulePath so Metro's transform cache is shareable across checkouts
@react-native/metro-config set asyncRequireModulePath with require.resolve(),
which embeds the absolute path of the checkout in Metro's global transform
cache key. Two checkouts of the same project (git worktrees, CI workspaces)
never shared a transform cache entry. Use the bare specifier, matching Metro's
own default and @expo/metro-config, with an extraNodeModules fallback so it
still resolves in installs where metro-runtime is not reachable from every
module (pnpm isolated).1 parent d2a6ce5 commit acb5d05
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
60 | 69 | | |
61 | 70 | | |
62 | 71 | | |
| |||
85 | 94 | | |
86 | 95 | | |
87 | 96 | | |
88 | | - | |
89 | | - | |
| 97 | + | |
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
| |||
0 commit comments