Skip to content

Commit 6912a7f

Browse files
committed
add legacy upload as alternative
1 parent a8712fa commit 6912a7f

File tree

2 files changed

+9
-3
lines changed
  • docs/platforms/javascript/common/sourcemaps/uploading
  • platform-includes/sourcemaps/legacy-uploading-methods

2 files changed

+9
-3
lines changed

docs/platforms/javascript/common/sourcemaps/uploading/esbuild.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ This guide assumes you're using a Sentry **SDK version `7.47.0` or higher**. If
1212

1313
<Alert level="danger">
1414

15-
The Sentry esbuild plugin doesn't work correctly, if you set `splitting: true` in your esbuild config.
16-
If you rely on code splitting, use [Sentry CLI](../cli) to upload source maps instead.
15+
The Sentry esbuild plugin doesn't fully support esbuild configurations, with `splitting: true`.
16+
If you rely on code splitting, use the esbuild plugin with <PlatformLink to="/sourcemaps/troubleshooting_js/legacy-uploading-methods/#uploading-using-sentry-bundler-plugins-on-version-2x">legacy source maps upload</PlatformLink>
17+
or <PlatformLink to="/sourcemaps/uploading/cli/">Sentry CLI</PlatformLink> to upload source maps instead.
1718

1819
</Alert>
1920

platform-includes/sourcemaps/legacy-uploading-methods/javascript.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ Sentry.init({
123123

124124
## Uploading using Sentry Bundler Plugins on Version `2.x`
125125

126-
If you are using a Sentry self-hosted or single-tenant on version `23.6.1` or lower, or you are using the Sentry JavaScript SDK on version `7.46.0` you will need to configure the bundler plugins with the `release.uploadLegacySourcemaps` option.
126+
If you're using
127+
- Sentry self-hosted or single-tenant on version `23.6.1` or lower
128+
- or the Sentry JavaScript SDK on version `7.46.0`
129+
- or esbuild with `splitting: true`
130+
131+
you'll need to configure the bundler plugins with the `release.uploadLegacySourcemaps` option.
127132

128133
This applies when using the following packages on version `2.x` and above:
129134

0 commit comments

Comments
 (0)