Skip to content

fix(angular): Ensure sourcemaps links have correct text color #11312

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

Merged
merged 1 commit into from
Sep 13, 2024
Merged
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
11 changes: 7 additions & 4 deletions platform-includes/sourcemaps/overview/javascript.angular.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,21 @@ To generate source maps, you need to add the `sourceMap` option to your `angular
```

<Alert>
Generating sourcemaps may expose them to the public, potentially causing your source code to be leaked. You can prevent this by configuring your server to deny access to `.js.map` files, or by deleting the sourcemaps before deploying your application.
Generating sourcemaps may expose them to the public, potentially causing your
source code to be leaked. You can prevent this by configuring your server to
deny access to `.js.map` files, or by deleting the sourcemaps before deploying
your application.
Comment on lines +39 to +42
Copy link
Member Author

Choose a reason for hiding this comment

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

auto-formatting(?)

</Alert>

#### Uploading Source Maps

To upload your Angular project's source maps to Sentry, we recommend one of these options:

- [**Angular CLI and Sentry webpack plugin**](./uploading/angular-webpack/) <br/>
- [Angular CLI and Sentry webpack plugin](./uploading/angular-webpack/) <br/>
Use the Angular CLI, a custom Angular builder and the Sentry webpack plugin to set releases and upload source maps automatically when running `ng build`.
- [**Nx Angular CLI and Sentry webpack plugin**](./uploading/angular-nx/) <br/>
- [Nx Angular CLI and Sentry webpack plugin](./uploading/angular-nx/) <br/>
If you're using Nx, use `@nx/angular` CLI and the Sentry webpack plugin to set releases and upload source maps automatically when running `nx build`.
- [**Sentry CLI**](./uploading/cli/)<br/>
- [Sentry CLI](./uploading/cli/)<br/>
Upload source maps manually using the Sentry CLI.

Take a look at this [guide for further options to upload source maps](./uploading/).
Loading