This example demos a basic host/remote application with TypeScript and also streams types.
npm install --global yarn
yarn
Run yarn start
in root folder. This will build and serve both host
and remote
on ports 3000 and 4000 respectively.
- For more settings, you can access federationConfig from path packages/[host or remote]/configs/federationConfig.js
- Use the .env file in the host project to change the remote address
- Monorepo is used for ease of use. But there is no requirement to use it.
- This project demonstrates the functionality of @module-federation/typescript. To read more, you can refer to the documentation of this package.