Skip to content

sentryWebpackPlugin makes webpack forget content hashes #680

Closed
@josefnorlin

Description

@josefnorlin

Environment

3.1.2

Steps to Reproduce

  1. Run a production build using Gitlab CI
  2. See that content hashes in dist/static/js/***.bundle.js gets regenerated every time:
  3. Removing, makes it work again:
webpackConfig.plugins.push(
   sentryWebpackPlugin({
      project: 'XXX',
      org: 'XXX',
      release: process.env.VERSION,
      include: './dist',
      dryRun: !!process.env.ANALYZE,
      rewrite: false,
  })
);
  1. Also setting realContentHash to false makes it work, but that might cause other problems:
optimization: {
      realContentHash: false,
 },

Expected Result

Should not change on each rebuild.

Actual Result

New dist/static/js/***.bundle.js files every time. Also tried rewrite: true/false to no avail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions