/dynamic-host-module-federation

An environment-agnostic, federated host that consumes remote applications dynamically.

Primary LanguageJavaScriptMIT LicenseMIT

Dynamic Module Federation (Host App)

Netlify Status

An environment-agnostic, federated host that consumes remote applications dynamically. Click here to see it live on Netlify.

Introduction

This stand-alone application dynamically consumes (hosts) the portion of the remote app that is exposed at runtime.

Features

  • Supports a multi-environment setup (dev, testing, stage, etc.)
  • Eliminate hard-coded URLs from your code and build tooling
  • Connect to remote containers and negotiate libraries dynamically
  • Supports remote container lazy-loading, chunk splitting, asset cache-busting, and Webpack merge

Installation

Install dependencies:

    npm install

Usage

Run dev environment:

    npm run dev

Navigate to local server:

http://localhost:8000

Getting Started

See Tutorial - A Guide to Module Federation for Enterprise for more information and to learn how this repository works.

Notes

Run this project alongside the remote app.

Supplementary Repositories

This repository employs additional code from the following repositories:

License

MIT