git clone [email protected]:Sampath-vi/host.git
cd host; npm install; npm start;
- The app should start on port 8080.- Replace the URL with the one where your remote server is running in webpack.config.js
- This app consists of a single file which imports and uses the components from the
remote
app.
- The
remote
url and the exposed fileremoteEntry.js
is being added as a remote for the host app to access the remote resources. - Imports inside the app are being mapped to the key in
webpack.config.js
App.tsx - More on Module Federation - module-federation