Remove redundant EventBus replacement pattern causing potential circular dependency (#984)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
This commit is contained in:
Copilot
2025-12-23 19:52:59 +01:00
committed by GitHub
parent e6ecb77d01
commit 0016f2d364

View File

@@ -54,10 +54,6 @@ export default {
// Point to browser event bus when importing from '../../../../events' // Point to browser event bus when importing from '../../../../events'
resource.request = path.resolve(__dirname, 'src', 'browserEventBus.ts') resource.request = path.resolve(__dirname, 'src', 'browserEventBus.ts')
}), }),
// Replace EventSystem/EventBus directly as well
new webpack.NormalModuleReplacementPlugin(/events[\\/]EventSystem[\\/]EventBus$/, resource => {
resource.request = path.resolve(__dirname, 'src', 'browserEventBus.ts')
}),
// Exclude IPC-based EventBus files completely // Exclude IPC-based EventBus files completely
new webpack.IgnorePlugin({ new webpack.IgnorePlugin({
resourceRegExp: /IpcRendererEventBus\.ts$/, resourceRegExp: /IpcRendererEventBus\.ts$/,