Commit a9c93a4
fix(Worklets): Normalize Windows paths in bundle mode module IDs (#9721)
On Windows, Metro resolves module paths with backslashes, but the
worklets bundle-mode `createModuleIdFactory` compares them against
POSIX-separated entry/dir constants, so the checks never match. The
worklets entry then never gets its fixed `-2` module id, and bundling a
worklets app crashes at runtime with `Requiring unknown module -2`.
This normalizes the path separators before the comparisons, so worklets
bundle mode works when bundling on Windows (it already worked on
macOS/Linux/CI).
---------
Co-authored-by: Tomasz Żelawski <40713406+tjzel@users.noreply.github.com>1 parent 9c2e3b0 commit a9c93a4
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
0 commit comments