Skip to content

Commit e3023c1

Browse files
committed
liza review suggestions
1 parent 044bf87 commit e3023c1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/platforms/javascript/guides/nuxt/manual-setup.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -161,24 +161,24 @@ export default defineNuxtConfig({
161161
});
162162
```
163163

164-
To upload source maps, the Sentry Nuxt Module will automatically enable source map generation in your project if it is not already enabled.
165-
However, you need to explicitly enable source map generation on the client-side.
166-
To do this, add the following code to your Nuxt configuration:
164+
The Sentry Nuxt Module automatically enables source map generation for your project,
165+
but you'll need to enable it explicitly for the client-side. Add this code to your Nuxt configuration:
167166

168167
```javascript {filename:nuxt.config.ts} {2}
169168
export default defineNuxtConfig({
170169
sourcemap: { client: 'hidden' }
171170
});
172171
```
173172

174-
The option `'hidden'` works like `true`, but suppresses the source map reference comments that would be added to the end of each generated file in the build output.
173+
The 'hidden' option functions the same as `true`, by enabling source map generation, but it also suppresses the source map reference comments that would
174+
normally appear at the end of each generated file in the build output. This keeps the source maps available without exposing their references in the files.
175175

176-
When opening browser developer tools, browsers attempt to fetch source maps through reference comments at the end of bundled files.
177-
After those source maps are uploaded to Sentry during the build process and the SDK removes these client-side source maps, any reference to source maps would trigger 404 errors in the developer tools.
178-
The `'hidden'` option prevents these reference comments from being generated, stopping browsers from attempting to fetch non-existent map files.
179-
This approach eliminates unnecessary network errors in browser developer tools.
176+
When you open browser developer tools, browsers try to fetch source maps using reference comments in bundled files. If source maps are uploaded to Sentry and
177+
removed from the client-side, these references cause 404 errors in developer tools. The `'hidden'` option stops these comments from being generated, preventing browsers
178+
from trying to fetch missing files and avoiding unnecessary errors.
180179

181-
Explicitly enabling client source maps is necessary because Nuxt sets default values for source maps ([Nuxt docs](https://nuxt.com/docs/api/nuxt-config#sourcemap)), and the Sentry Nuxt Module keeps these settings when they are explicitly defined.
180+
You need to explicitly enable client-side source maps because Nuxt applies default [source map settings](https://nuxt.com/docs/api/nuxt-config#sourcemap), and
181+
the Sentry Nuxt Module respects these when they are explicitly defined.
182182

183183
## Verify
184184

0 commit comments

Comments
 (0)