Skip to content
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

## Unreleased

### Changes

- Compile the SDK to ES2018 to stop inlining TypeScript helpers (`__awaiter`, `__rest`) in every file, reducing bundle size ([#6957](https://github.com/getsentry/sentry-react-native/pull/6957))

### Fixes

- Apply `screenshot` masking options to Android error and feedback screenshots ([#6930](https://github.com/getsentry/sentry-react-native/pull/6930))
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
// react-native's global types are pulled in via the `paths` mapping above; classic `node`
// resolution can no longer discover them through the removed root `types` field.
"types": [],
"target": "es6",
"target": "es2018",
"module": "es6",
"skipLibCheck": true,
"strictBindCallApply": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.build.tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"rootDir": "src",
"lib": ["es7"],
"types": ["node"],
"target": "es6",
"target": "es2018",
"module": "CommonJS",
"skipLibCheck": true,
"importHelpers": false
Expand Down
5 changes: 4 additions & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"compilerOptions": {
"rootDir": ".",
"jsx": "react",
"types": ["jest"]
"types": ["jest"],
// Jest compiles with this config. Keep async/await downleveled like Metro's Babel preset does in apps,
// so SDK async code runs on the global (polyfilled) Promise that `Sentry.init` installs.
"target": "es2016"
}
}
2 changes: 1 addition & 1 deletion packages/core/tsconfig.lint.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"lib": ["es7"],
"jsx": "react",
"types": ["jest"],
"target": "es6",
"target": "es2018",
"module": "es6",
"skipLibCheck": true,
"strictBindCallApply": true,
Expand Down
Loading