Skip to content
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

Webpack plugin uploads source maps on development mode #520

Open
InterstellarStella opened this issue Apr 11, 2024 · 3 comments
Open

Webpack plugin uploads source maps on development mode #520

InterstellarStella opened this issue Apr 11, 2024 · 3 comments

Comments

@InterstellarStella
Copy link

Environment

Using sentry/browser version 7.109.0 and sentry/webpack-plugin version 2.16.1.

Steps to Reproduce

  1. Create a very minimal JS app and add webpack to it
  2. Set up Sentry's SDK and the sentry webpack plugin according to the docs
  3. Run the app with webpack --watch --mode development OR set mode:“development”, in webpack's module.exports.

Expected Result

Source maps are not uploaded to Sentry, as stated in the docs:

The Sentry webpack plugin doesn't upload source maps in watch-mode/development-mode. We recommend running a production build to test your configuration.

Actual Result

Source maps are uploaded to Sentry.

@lforst
Copy link
Member

lforst commented Apr 15, 2024

Backlogging this!

@lforst
Copy link
Member

lforst commented Apr 15, 2024

As a workaround you can set disable: true for when you do dev builds.

@rabbiveesh
Copy link

rabbiveesh commented Aug 12, 2024

This is still very broken - even setting sourcemaps.disable to an explicit true still results in the sourcemaps being uploaded in dev mode (using the vite plugin)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Status: No status
Development

No branches or pull requests

3 participants