Skip to content

Hash as query in webpack #737

Open
Open
@m10

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.

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