Skip to content
Closed
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
48 changes: 48 additions & 0 deletions platform-includes/sourcemaps/overview/javascript.capacitor.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## Uploading Source Maps

The easiest way to configure uploading source maps is by using the Sentry Wizard:

<Include name="sourcemaps-wizard-instructions.mdx" />

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this guide is specifically for capacitor, can we provide more explicit instructions on what users should select?


```example
◆ Which framework, bundler or build tool are you using?
│ ● Angular
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why some frameworks have a solid circle (angular) vs an open one (next.js)? It's confusing because the solid ones feel like it's selected

│ ○ Create React App
│ ○ Next.js
│ ○ Remix
│ ● Webpack
│ ● Vite (Select this if you are using Vite and you have access to your Vite config.)
│ ● esbuild
│ ○ Rollup
│ ● tsc
│ ○ I use another tool
│ ○ I don't minify, transpile or bundle my code
```
<Note>
If your project uses `Ionic build` for building your project, select the `tsc` option.
</Note>

## Manual Source Maps upload
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Manual Source Maps upload
## Manual Source Maps Upload


If you want to configure source maps upload manually, follow the guide for your bundler or build tool below.

### Sentry Bundler Supporte
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Sentry Bundler Supporte
### Sentry Bundler Support


- <PlatformLink to="/sourcemaps/uploading/webpack/">webpack</PlatformLink>
- <PlatformLink to="/sourcemaps/uploading/rollup/">Rollup</PlatformLink>
- <PlatformLink to="/sourcemaps/uploading/vite/">Vite</PlatformLink>
- <PlatformLink to="/sourcemaps/uploading/esbuild/">esbuild</PlatformLink>

### Guides

- <PlatformLink to="/sourcemaps/uploading/typescript/"> TypeScript (tsc) </PlatformLink>
<Note>
If you're using one of webpack, Vite, Rollup or Esbuild, use the
corresponding Sentry plugin instead (see section "Sentry Bundler Support").
</Note>
- <PlatformLink to="/sourcemaps/uploading/uglifyjs/">UglifyJS</PlatformLink>
- <PlatformLink to="/sourcemaps/uploading/systemjs/">SystemJS</PlatformLink>
- [GitHub Actions](/product/releases/setup/release-automation/github-actions/)
3 changes: 3 additions & 0 deletions platform-includes/sourcemaps/primer/javascript.capacitor.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
To enable readable stack traces in your Sentry errors, you need to upload your source maps to Sentry.

![Readable Stack Traces](/platform-includes/sourcemaps/primer/readable-stacktraces.png)
Loading