From 0016f2d36499284d90d4f33ba5480230c961a77a Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 23 Dec 2025 19:52:59 +0100 Subject: [PATCH] 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> --- app/webpack.browser.config.mjs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/webpack.browser.config.mjs b/app/webpack.browser.config.mjs index ee846bc..530cdcb 100644 --- a/app/webpack.browser.config.mjs +++ b/app/webpack.browser.config.mjs @@ -54,10 +54,6 @@ export default { // Point to browser event bus when importing from '../../../../events' 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 new webpack.IgnorePlugin({ resourceRegExp: /IpcRendererEventBus\.ts$/,