originjs / vite-plugin-federation

Module Federation for vite & rollup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mutliple WS connections established to the remote app

kunal-gc opened this issue · comments

Versions

  • vite-plugin-federation: 1.3.4
  • vite: 5.0.10

Reproduction

Additional Details

Steps to reproduce

image

I've hosted the Vue 3 app using Vite, and the remote app is built with React and Webpack. I've observed multiple WebSocket connections being established, leading to issues with hot reloading. Consequently, the host app is unable to perform hot reloads during development, requiring a full website reload. Additionally, although I'm exposing three components from the remote app, only two of them are loaded when the host app is loaded or refreshed.

What is Expected?

It should establish one socket connection at a time

What is actually happening?