Skip to content

Commit 0ece360

Browse files
working
1 parent fdd53cf commit 0ece360

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
## Uploading Source Maps
2+
3+
The easiest way to configure uploading source maps is by using the Sentry Wizard:
4+
5+
<Include name="sourcemaps-wizard-instructions.mdx" />
6+
7+
After choosing your Sentry project, the setup process will prompt you to select a framework. This step is crucial for configuring Sentry correctly. Make sure to choose the appropriate framework based on your project’s requirements.
8+
9+
```example
10+
◆ Which framework, bundler or build tool are you using?
11+
│ ○ Angular
12+
│ ○ Create React App
13+
│ ○ Next.js
14+
│ ○ Remix
15+
│ ● Webpack
16+
│ ● Vite (Select this if you are using Vite and you have access to your Vite config.)
17+
│ ● esbuild
18+
│ ○ Rollup
19+
│ ○ tsc
20+
│ ○ I use another tool
21+
│ ○ I don't minify, transpile or bundle my code
22+
23+
```
24+
25+
If your project uses `Ionic build` for building your project, select the `tsc` option, otherwise, select `Angular`, `Webpack`, `Vite`, or `tsc` for the build script in your `package.json` file.
26+
27+
## Manual Source Maps upload
28+
29+
If you want to configure source maps upload manually, follow the guide for your bundler or build tool below.
30+
31+
### Sentry Bundler Supporte
32+
33+
- <PlatformLink to="/sourcemaps/uploading/webpack/">webpack</PlatformLink>
34+
- <PlatformLink to="/sourcemaps/uploading/rollup/">Rollup</PlatformLink>
35+
- <PlatformLink to="/sourcemaps/uploading/vite/">Vite</PlatformLink>
36+
- <PlatformLink to="/sourcemaps/uploading/esbuild/">esbuild</PlatformLink>
37+
38+
### Guides
39+
40+
- <PlatformLink to="/sourcemaps/uploading/typescript/"> TypeScript (tsc) </PlatformLink>
41+
<Note>
42+
If you're using one of webpack, Vite, Rollup or Esbuild, use the
43+
corresponding Sentry plugin instead (see section "Sentry Bundler Support").
44+
</Note>
45+
- <PlatformLink to="/sourcemaps/uploading/uglifyjs/">UglifyJS</PlatformLink>
46+
- <PlatformLink to="/sourcemaps/uploading/systemjs/">SystemJS</PlatformLink>
47+
- [GitHub Actions](/product/releases/setup/release-automation/github-actions/)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
To enable readable stack traces in your Sentry errors, you need to upload your source maps to Sentry.
2+
3+
![Readable Stack Traces](/platform-includes/sourcemaps/primer/readable-stacktraces.png)

0 commit comments

Comments
 (0)