Skip to content
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
12 changes: 12 additions & 0 deletions docs/platforms/javascript/common/sourcemaps/uploading/vite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,15 @@ The Sentry Vite plugin doesn't upload source maps in watch-mode/development-mode
We recommend running a production build to test your configuration.

</Alert>

## Troubleshooting

<Expandable permalink={false} title="Sentry Vite plugin shows high plugin timings warning">

When using Vite 6+ with the Rolldown bundler, you may see a `[PLUGIN_TIMINGS]` warning reporting that `sentry-vite-plugin` is taking a high percentage of total build time. This warning comes from [Rolldown's plugin timings check](https://rolldown.rs/reference/InputOptions.checks#plugintimings), not from Sentry, and appears when a single plugin uses more than 50% of total build time.

This is expected behavior. The Sentry Vite plugin uploads source maps to Sentry during the build, which involves network requests. In projects with fast compilation (common with Rolldown), the upload step can dominate the total build time percentage even though the absolute duration hasn't increased.

Make sure you only upload source maps for production builds and in CI. See the [configuration section](#configuration) above for setup details.

</Expandable>
Loading