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:
@@ -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$/,
|
||||||
|
|||||||
Reference in New Issue
Block a user