Skip to content

Commit ccbcef4

Browse files
authored
docs(sourceMaps): Use the hidden value (#15574)
1 parent 060747e commit ccbcef4

File tree

16 files changed

+29
-29
lines changed

16 files changed

+29
-29
lines changed

docs/platforms/javascript/common/best-practices/micro-frontends.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ below is for Webpack, but this is also supported in Vite, Rollup, and esbuild.
6565
const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
6666

6767
module.exports = {
68-
devtool: "source-map",
68+
devtool: "hidden-source-map", // Source map generation must be turned on ("hidden-source-map", "source-map", etc.)
6969
plugins: [
7070
sentryWebpackPlugin({
7171
moduleMetadata: ({ release }) => ({ dsn: "__MODULE_DSN__", release }),
@@ -254,9 +254,9 @@ init({
254254
<Alert>
255255
**Replace the placeholder DSN values with your actual Sentry project DSNs:**
256256
- Replace `__FALLBACK_DSN__` with the DSN for your fallback/default Sentry project
257-
- Replace `__CART_DSN__` with the DSN for your cart micro frontend's Sentry project
257+
- Replace `__CART_DSN__` with the DSN for your cart micro frontend's Sentry project
258258
- Replace `__GALLERY_DSN__` with the DSN for your gallery micro frontend's Sentry project
259-
259+
260260
You can find your DSNs in each Sentry project's settings under Client Keys (DSN).
261261
</Alert>
262262

docs/platforms/javascript/common/sourcemaps/uploading/angular-nx.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
9090
module.exports = {
9191
// ... other config above ...
9292

93-
devtool: "source-map", // Source map generation must be turned on
93+
devtool: "hidden-source-map", // Source map generation must be turned on ("hidden-source-map", "source-map", etc.)
9494
plugins: [
9595
sentryWebpackPlugin({
9696
org: "___ORG_SLUG___",

docs/platforms/javascript/common/sourcemaps/uploading/angular-webpack.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
102102
module.exports = {
103103
// ... other config above ...
104104

105-
devtool: "source-map", // Source map generation must be turned on
105+
devtool: "hidden-source-map", // Source map generation must be turned on ("hidden-source-map", "source-map", etc.)
106106
plugins: [
107107
sentryWebpackPlugin({
108108
org: "___ORG_SLUG___",

docs/platforms/javascript/common/sourcemaps/uploading/esbuild.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Example:
8181
const { sentryEsbuildPlugin } = require("@sentry/esbuild-plugin");
8282

8383
require("esbuild").build({
84-
sourcemap: true, // Source map generation must be turned on
84+
sourcemap: "hidden", // Source map generation must be turned on ("hidden", true, etc.)
8585
plugins: [
8686
// Put the Sentry esbuild plugin after all other plugins
8787
sentryEsbuildPlugin({

docs/platforms/javascript/common/sourcemaps/uploading/rollup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import { sentryRollupPlugin } from "@sentry/rollup-plugin";
6161

6262
export default {
6363
output: {
64-
sourcemap: true, // Source map generation must be turned on
64+
sourcemap: "hidden", // Source map generation must be turned on ("hidden", true, etc.)
6565
},
6666
plugins: [
6767
// Put the Sentry rollup plugin after all other plugins

docs/platforms/javascript/common/sourcemaps/uploading/vite.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ import { sentryVitePlugin } from "@sentry/vite-plugin";
6262

6363
export default defineConfig({
6464
build: {
65-
sourcemap: true, // Source map generation must be turned on
65+
sourcemap: "hidden", // Source map generation must be turned on ("hidden", true, etc.)
6666
},
6767
plugins: [
68-
// Put the Sentry vite plugin after all other plugins
68+
// Put the Sentry Vite plugin after all other plugins
6969
sentryVitePlugin({
7070
org: "___ORG_SLUG___",
7171
project: "___PROJECT_SLUG___",

docs/platforms/javascript/common/sourcemaps/uploading/webpack.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
6363
module.exports = {
6464
// ... other config above ...
6565

66-
devtool: "source-map", // Source map generation must be turned on
66+
devtool: "hidden-source-map", // Source map generation must be turned on ("hidden-source-map", "source-map", etc.)
6767
plugins: [
6868
sentryWebpackPlugin({
6969
org: "___ORG_SLUG___",

docs/platforms/javascript/common/troubleshooting/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ This might be because the [`define`](https://vitejs.dev/config/shared-options.ht
481481
```javascript {filename:vite.config.ts} {diff}
482482
export default defineConfig({
483483
build: {
484-
sourcemap: true
484+
sourcemap: 'hidden'
485485
},
486486
- define: {
487487
- global: {}

docs/platforms/javascript/guides/node/legacy-sdk/sourcemaps.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const path = require("path");
3232
module.exports = {
3333
// ... other config above ...
3434
target: "node",
35-
devtool: "source-map",
35+
devtool: "hidden-source-map", // Source map generation must be turned on ("hidden-source-map", "source-map", etc.)
3636
entry: {
3737
app: "./src/app.js",
3838
},

docs/product/sentry-basics/integrate-frontend/upload-source-maps.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If your project has a different configuration, use the [Sentry Wizard](/platform
2525
filename: "main.js",
2626
path: path.resolve(__dirname, "build"),
2727
},
28-
devtool: "source-map",
28+
devtool: "hidden-source-map", // Source map generation must be turned on ("hidden-source-map", "source-map", etc.)
2929
...
3030
}
3131
...

0 commit comments

Comments
 (0)