The plugin needs to add the ~/sourcemap~ /react-native-source-map route when a custom endpoint is provided, which is then passed to the source map CLI.
Changeset
If the endpoint is upload.bugsnag.com, ~just pass that~ pass nothing. Otherwise, ~sourcemap~ react-native-source-map should be appended onto the route.
The version of bugsnag-sourcemaps was also bumped to the latest available from npm.
Testing
Added to existing unit tests to verify that the endpoint is calculated correctly.
Goal
The plugin needs to add the ~
/sourcemap
~/react-native-source-map
route when a custom endpoint is provided, which is then passed to the source map CLI.Changeset
If the endpoint is
upload.bugsnag.com
, ~just pass that~ pass nothing. Otherwise, ~sourcemap
~react-native-source-map
should be appended onto the route.The version of bugsnag-sourcemaps was also bumped to the latest available from npm.
Testing
Added to existing unit tests to verify that the endpoint is calculated correctly.