@schirrel/module-federation-enhanced-plugin
v2.0.2
Published
Add feature for improve load and offline management of remotes
Downloads
1,353
Readme
ModuleFederationEnhacedPlugin
Module Federation with a little bit more and all remotes async by default
Take a look at the full docs
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:
- https://github.com/schirrel/enhanced
- https://github.com/module-federation/enhanced/pull/2