This repository contains a working example using webpack 5 module federation, React and TypeScript.
It is based off the wp5-scaffold-react-ts template.
Ensure the node_modules for the root folder as well as the sub-folders container-app and remote-app have been installed.
Afterwards use the following command to start the project.
npm run dev:all
or
yarn dev:all
In the project directory, you can run:
Starts the main container app which is the shell of the application and is where the exposed remotes are consumed.
Starts the remote app which exposes its components so that they can be consumed by other apps with module federation plugin.
Runs both the remote app and shell app in sequence so that it has all the resources available for use when the app loads.