@module-federation/modern-js
offers powerful capabilities, enabling developers to easily combine Module Federation with server-side rendering (SSR) in Modern.js applications.
Using the application created in Using Module Federation as an example, you only need to add the server.ssr
configuration to both the producer and the consumer:
For better performance, we only support using this capability combination in Streaming SSR scenarios.
Currently, @module-federation/bridge-react
is not compatible with the Node environment. You must remove it from the dependencies to use Module Federation and server-side rendering correctly. This means Bridge cannot work with server-side rendering.
Stay tuned