This is a version of the Basic One-Way example at the repository below, modified to use ts-loader.
https://github.com/module-federation/module-federation-examples
Install yarn and lerna globally.
To install packages for both apps:
lerna bootstrap
This example demos a basic host application loading remote component.
app1
is the host application.app2
standalone application which exposesButton
component.
Run yarn start
. This will build and serve both app1
and app2
on ports 3001 and 3002 respectively.
- localhost:3001 (HOST)
- localhost:3002 (STANDALONE REMOTE)