Repository navigation
test: Update examples to Forge 8 and @sentry/bundler-plugins - #1478
Conversation
…ry/bundler-plugins
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1dc5a58. Configure here.
| "description": "Electron Forge Webpack example", | ||
| "version": "1.0.0", | ||
| "main": ".webpack/main", | ||
| "main": ".webpack/main/index.cjs", |
There was a problem hiding this comment.
Wrong webpack Forge main entry
High Severity
The webpack example now points main at index.cjs, but Forge 8's webpack plugin still writes index.js under .webpack/main. Electron cannot load that missing file, so packaging and the e2e run fail. The .cjs output change applies to the Vite plugin, not webpack.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 1dc5a58. Configure here.
There was a problem hiding this comment.
Forge 8's webpack plugin emits .webpack/main/index.cjs. With .webpack/main, the build fails with an error naming that path. The e2e test passes with this change.


electron-forge,electron-forge-viteandelectron-forge-webpackto Electron Forge 8.cjsmain entry paths that Forge 8 emits@sentry/webpack-pluginand@sentry/vite-pluginwith@sentry/bundler-plugins/webpackand@sentry/bundler-plugins/vite@sentry/bundler-pluginsto the JS SDK version in the e2e test setupwebpack-context-isolationexamples to webpack-cli 7electron-viteexample to electron-vite 5, Vite 7 and Vue 3.5@sentry/electronandelectronversions in all examples