Skip to content

Webpack plugin uploads source maps on development mode #520

@InterstellarStella

Description

@InterstellarStella

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions