Skip to content

Commit 2684f2c

Browse files
fix(expo): Make getSentryExpoConfig options param optional (#3514)
1 parent 70f6d72 commit 2684f2c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Fixes
6+
7+
- Make `getSentryExpoConfig` options parameter optional ([#3514](https://github.com/getsentry/sentry-react-native/pull/3514))
8+
39
## 5.16.0-alpha.3
410

511
This release is compatible with `[email protected]` and newer.
@@ -12,7 +18,7 @@ This release is compatible with `[email protected]` and newer.
1218

1319
```js
1420
const { getSentryExpoConfig } = require("@sentry/react-native/metro");
15-
const config = getSentryExpoConfig(config);
21+
const config = getSentryExpoConfig(config, {});
1622
```
1723

1824
- Add `npx sentry-expo-upload-sourcemaps` for simple EAS Update (expo export) source maps upload to Sentry ([#3491](https://github.com/getsentry/sentry-react-native/pull/3491), [#3510](https://github.com/getsentry/sentry-react-native/pull/3510))

src/js/tools/sentryMetroSerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const DEBUG_ID_COMMENT = '//# debugId=';
1818
/**
1919
* This function returns Default Expo configuration with Sentry plugins.
2020
*/
21-
export function getSentryExpoConfig(projectRoot: string, options: DefaultConfigOptions): MetroConfig {
21+
export function getSentryExpoConfig(projectRoot: string, options: DefaultConfigOptions = {}): MetroConfig {
2222
const { getDefaultConfig } = loadExpoMetroConfigModule();
2323
return getDefaultConfig(projectRoot, {
2424
...options,

0 commit comments

Comments
 (0)