Skip to content
This repository was archived by the owner on Oct 29, 2026. It is now read-only.
This repository was archived by the owner on Oct 29, 2026. It is now read-only.

Hash as query in webpack #737

Closed
Closed

Description

@m10

Environment

Webpack React project.
webpack 5.99.8
@sentry/webpack-plugin 3.4.0

Steps to Reproduce

  1. Configure webpack output.filename like 'res/js/[name].js?[contenthash]' note the hash as querystring, not part of the actual filename
  2. configure @sentry/webpack-plugin
  3. build

Expected Result

The generated source maps get found and uploaded to sentry

Actual Result

It reports 0 files found

The problem is that here the asset paths are passed from webpack as is (with query string) and here they get passed to the glob function still with query string. No files get found since glob will search for files with query string, while webpack stores them without.

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 12, 2025
  2. andreiborza commented on May 12, 2025

    @andreiborza
    Member

    Hi, thanks for filing this and digging through the code to figure out why it happens. Will discuss internally how we'll proceed with this.

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 12, 2025
  4. assigned and unassigned on Aug 5, 2025
  5. timfish commented on Aug 27, 2025

    @timfish
    Contributor

    I've got a fix for this, I'm just trying to work out how to test it!

  6. Lms24 commented on Oct 10, 2025

    @Lms24
    Member

    Released with 4.4.0, thanks for fixing, Tim!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions