webpack-hot-middleware icon indicating copy to clipboard operation
webpack-hot-middleware copied to clipboard

Allow specifying EventStream

Open eric-higgins-ai opened this issue 2 years ago • 2 comments

This PR contains a:

  • [ ] bugfix
  • [X] new feature
  • [ ] code refactor
  • [X] test update
  • [ ] typo fix
  • [ ] metadata update

Motivation / Use-Case

We have several bundles built using module federation and want to run dev servers for all of them in parallel. Currently this requires opening 1 event stream per bundle, which causes problems because Chrome limits open requests to a single domain to 6. This PR fixes that issue by exporting createEventStream and adding an eventStream to the middlware options, so we can create a single event stream and share it between all of our webpack instances.

eric-higgins-ai avatar Mar 26 '24 17:03 eric-higgins-ai

CLA Not Signed

Please accapt CLA, thank you

alexander-akait avatar Mar 26 '24 18:03 alexander-akait