上传源映射
了解如何将源映射提供给 Sentry。
To upload your Angular project's source maps to Sentry, we recommend one of these options:
- Angular CLI and Sentry webpack plugin
Use the Angular CLI, a custom Angular builder and the Sentry webpack plugin to set releases and upload source maps automatically when runningng build
. - Nx Angular CLI and Sentry webpack plugin
If you're using Nx, use@nx/angular
CLI and the Sentry webpack plugin to set releases and upload source maps automatically when runningnx build
. - Sentry CLI
Upload source maps manually using Sentry CLI.
These options work well with Angular projects out of the box. For other bundlers or more advanced projects and configurations, take a look at the following guides and options for uploading sourcemaps: