-
Notifications
You must be signed in to change notification settings - Fork 37
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 did not upload sourcemap when output.filename include contain a query #441
Comments
Thanks for reporting this. Maybe you have time to investigate why this is happening, if not we will take a look. |
I'm not familiar with the native part of the cli, I may make a repo that reproduce this issue to help you to investigate. |
+1 my situation filename: '[name].js?[contenthash]', |
I am having a similar problem. The errors I'm getting are
I believe this is occurring because this injection code only works if the path ends with sentry-javascript-bundler-plugins/packages/webpack-plugin/src/index.ts Lines 106 to 113 in bbe0472
Inside webpack, this regexp gets tested against |
I was able to work around this issue by patching the regular expression to look like this: include: /\.(js|ts|jsx|tsx|mjs|cjs)(?:\?|$)/ |
@jtbandes Thanks for looking, it seems slightly risky for us to also match on queries in the end, I am not sure yet. |
Environment
What version are you running? Etc.
"@sentry/webpack-plugin": "^2.10.0",
"@sentry/browser": "7.80.1",
"@sentry/tracing": "7.80.1",
Steps to Reproduce
output.filename
add a query:Expected Result
sentry upload sourcemap
Actual Result
sentry did not upload sourcemap
The text was updated successfully, but these errors were encountered: