-
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
sentry-webpack-plugin + electron(-forge) breaks universal builds #511
Comments
Hi, thanks for writing in and doing the research! I don't think we will fix this soon. I recommend using Sentry CLI instead to upload source maps for the time being. We should probably add an option to disable debug ID injection and also investigate whether there is a more stable way to create a hash for the debug IDs. |
I believe this is a similar issue #591 |
If you set |
Will close this in favor of cleanup. Feel free to open it again. |
Environment
MacOS 14.1.1 (23B81) (intel)
Steps to Reproduce
Create electron project, add @sentry/electron, electron-forge (with webpack template), and add @sentry/webpack-plugin to the list of webpack plugins.
Run
yarn electron-forge publish --arch=universal
(on a Mac, or GitHub Actions macOS runner)Expected Result
Should create a universal package.
Actual Result
Outputs an error:
Reason being, webpack is run twice, once for arm64 and once for x86. All the files inside include a webpack banner that uses
arg.chunk.hash
which is different for each webpack run.sentry-javascript-bundler-plugins/packages/webpack-plugin/src/index.ts
Lines 106 to 112 in 6fd1363
That outputs to a banner looking like this at the top of each non-binary file, where the
_sentryDebugIds[t]
and_sentryDebugIdIdentifier
is different for each run (arm64 & x86):The text was updated successfully, but these errors were encountered: