Skip to content

React Native react-native inject-debug-id bundle name limitation #1907

@AZagatti

Description

@AZagatti

Feature request description

The inject-debug-id ./dir command fails on standard iOS builds because it strictly looks for a *.bundle file, but the default iOS output is main.jsbundle. This requires a manual file renaming step in our CI pipeline.

Solution

We suggest two possible solutions:

  1. Update the file search pattern to be more flexible, like *bundle, to match main.jsbundle.
  2. Allow specifying file paths directly via flags, for example:
npx @datadog/datadog-ci react-native inject-debug-id \
  --bundle ./path/to/main.jsbundle \
  --sourcemap ./path/to/main.jsbundle.map

Additional context

No response

Command

react-native

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrumRelated to [dsyms, flutter-symbols, react-native, sourcemaps, unity-symbols]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions