SIGN IN SIGN UP

fix(react-native): support bare Hermes sourcemaps (#4604)

* fix(react-native): support bare Hermes sourcemaps

Generate a deterministic Chunk ID before Metro renders bundle code and source maps so bare React Native Hermes builds no longer ship the placeholder ID. Also accept the variable-key runtime chunk map emitted by the injected snippet and keep source-map generation atomic.

Signed-off-by: Ayobami Haastrup <47716486+AyobamiH@users.noreply.github.com>

* style(react-native): format serializer test import

* fix react native virtual module source updates

* test(react-native): allow expected chunk id log

* fix(react-native): preserve chunk ID for Hermes uploads

Write the generated ID to the standard debugId source-map field so posthog-cli hermes clone carries it into the composed Hermes map.

* fix(react-native): rely on CLI chunk ID support

* docs(react-native): note minimum CLI version

---------

Signed-off-by: Ayobami Haastrup <47716486+AyobamiH@users.noreply.github.com>
Co-authored-by: Manoel Aranda Neto <marandaneto@gmail.com>
A
Ayobami Haastrup committed
42ffca657f9056eaccdbaf8c6a7cbbb5af866709
Parent: 64335e9
Committed by GitHub <noreply@github.com> on 8/24/2026, 10:17:16 PM