rspack icon indicating copy to clipboard operation
rspack copied to clipboard

[Feature]: Use 1 HMR websocket connection for mutilple micro-frontend apps in same page

Open coder-czw opened this issue 1 year ago • 5 comments

What problem does this feature solve?

Scene

  1. I have a single page: https://www.abc.com/
  2. Use rspack run 3 micron-frontend in local:
  • main-app in port 8001
  • a1-app in port 8002
  • a2-app in port 8003
  1. Use qiankun.js to load a1-app and a2-app from main-app
  2. Use whistle to proxy https://www.abc.com/ page resource to local
  3. I wrote the proxy on main-app dev-server for a1-app and a2-app ports

Problem

  1. The hmr websocket connections build failed.
  2. Too much websocket connections

What does the proposed API of configuration look like?

I want my sub-apps hmr can access successfully, it will be better that I can use only 1 hmr websocket to update all sub-apps on the same page.

coder-czw avatar Jun 14 '24 08:06 coder-czw