-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
update(Capacitor): Source map docs #9437
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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. | ||||||
|
|
||||||
| ```example | ||||||
| ◆ Which framework, bundler or build tool are you using? | ||||||
| │ ● Angular | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| If you want to configure source maps upload manually, follow the guide for your bundler or build tool below. | ||||||
|
|
||||||
| ### Sentry Bundler Supporte | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - <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/) | ||||||
| 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. | ||
|
|
||
|  |
There was a problem hiding this comment.
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?