/dynamicLoaderModuleFederation

A custom loader and runner for scripts federated with Module Federation and loaded to a vanilla JavaScript application.

Primary LanguageJavaScript

Dynamic loader for Module Federation

The bootstrap.js script helps with bootstrapping or loading and executing federated modules to a JavaScript project.

Microfrontends Object

Replace that object with your own definitions or a dynamic source.

Created with love

This script is open source. Use it to your convenience. If you do, drop me a note to my twitter and show me the awesome stuff you're creating.

Usage

Place the script tag that requests the remote entry, in your HTML. Configure the Microfrontends object with the configuration coming from the remotes and configure your host's webpack Module Federation plugin