vite-plugin-federation icon indicating copy to clipboard operation
vite-plugin-federation copied to clipboard

Whether communication with webPack built projects is supported

Open huntJs opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

for example project A was build using vite(MF), and project B was build using webpack5(MF), so my question is whether the project A can be used as host or remote ,thanks~

huntJs avatar May 03 '22 04:05 huntJs

vite as remote or host side is allowed, here are some examples to show the mixed use with webpack module federation(please focus on the folder project name with webpack) https://github.com/originjs/vite-plugin-federation/tree/main/packages/examples but I just tried a few simple examples, do not know if it is feasible in complex scenarios, if there are problems welcome to use the issue report

Jiannan-dev avatar May 05 '22 06:05 Jiannan-dev

@ruleeeer What about host (webpack) - remote (vite) ? I couldn't find any example for that.

ghost avatar May 27 '22 03:05 ghost

Yes, but we have only implemented webpack configured as esm format, other formats may not be supported.

flyfishzy avatar May 28 '22 08:05 flyfishzy

Hi @huntJs , webpack have been supported and compatible with the esm systemjs var format.

flyfishzy avatar Jan 18 '23 02:01 flyfishzy