Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix react native web builds #341

Merged
merged 2 commits into from
Jun 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

### 🐛 Bug fixes

- RN Web Builds can import SDK from version `@sentry/react-native`

### 🧹 Chores

## [6.2.0](https://github.com/expo/sentry-expo/releases/tag/v6.2.0) - 2023-06-06
Expand Down
2 changes: 1 addition & 1 deletion build/sentry.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/sentry.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/sentry.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions build/version.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { SDK_VERSION as SENTRY_REACT_NATIVE_VERSION } from '@sentry/react-native';
import { SDK_VERSION as SENTRY_REACT_VERSION } from '@sentry/react';
export declare const SENTRY_EXPO_PACKAGE = "npm:sentry-expo";
export declare const SENTRY_EXPO_VERSION = "6.1.1";
export declare const SENTRY_EXPO_VERSION = "6.2.0";
export declare const SENTRY_REACT_NATIVE_PACKAGE = "npm:@sentry/react-native";
export declare const SENTRY_REACT_PACKAGE = "npm:@sentry/react";
export { SENTRY_REACT_NATIVE_VERSION, SENTRY_REACT_VERSION };
export { SENTRY_REACT_VERSION };
//# sourceMappingURL=version.d.ts.map
2 changes: 1 addition & 1 deletion build/version.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions build/version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/version.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions src/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ import {
SENTRY_EXPO_PACKAGE,
SENTRY_EXPO_VERSION,
SENTRY_REACT_NATIVE_PACKAGE,
SENTRY_REACT_NATIVE_VERSION,
} from './version';

import { init as initNative, Integrations } from '@sentry/react-native';
import {
init as initNative,
Integrations,
SDK_VERSION as SENTRY_REACT_NATIVE_VERSION,
} from '@sentry/react-native';
import { AppManifest } from 'expo-constants/build/Constants.types';

export * as Native from '@sentry/react-native';
Expand Down
5 changes: 2 additions & 3 deletions src/version.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { SDK_VERSION as SENTRY_REACT_NATIVE_VERSION } from '@sentry/react-native';
import { SDK_VERSION as SENTRY_REACT_VERSION } from '@sentry/react';

export const SENTRY_EXPO_PACKAGE = 'npm:sentry-expo';
export const SENTRY_EXPO_VERSION = '6.1.1';
export const SENTRY_EXPO_VERSION = '6.2.0';

export const SENTRY_REACT_NATIVE_PACKAGE = 'npm:@sentry/react-native';
export const SENTRY_REACT_PACKAGE = 'npm:@sentry/react';
export { SENTRY_REACT_NATIVE_VERSION, SENTRY_REACT_VERSION };
export { SENTRY_REACT_VERSION };