Skip to content

schirrel/ModuleFederationEnhancedPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ModuleFederationEnhacedPlugin

Module Federation with a little bit more and all remotes async by default

Take a look at the full docs

Packages here:

Dont want o read the docs? Here's a TL/DR:

Features

  • Modules' Name List
  • Remotes' Name List
  • Remotes' URL List and Map
  • Remote definition with object
  • Default async

Install

npm i @schirrel/module-federation-enhanced-plugin

Config

const ModuleFederationEnhacedPlugin = require("@schirrel/module-federation-enhanced-plugin");
module.export = {
  //... rest of your config
  plugins: [
    new ModuleFederationEnhancedPlugin({
    // same as the ModuleFederationPlugin config
      exposes: {
        Button: "./src/Button",
        Input: "./src/Input"
      },
    }),
  ],
};

Disclaimer

The need of these features is part of my Master Degree with Embrapa at UFMS, and so them must to be like are writen here. Also some of these features will be present or are being proposed to the oficial Enhanced module federation plugin.
You can take a look at: