Module Federation with a little bit more and all remotes async by default
Take a look at the full docs
Packages here:
- packages/plugin:
- docs: https://schirrel.dev/ModuleFederationEnhancedPlugin/
- package:
@schirrel/module-federation-enhanced-plugin
- packages/helper:
- docs: https://schirrel.dev/ModuleFederationEnhancedPlugin/helper/about
- package:
@schirrel/module-federation-enhanced-plugin-helper
Dont want o read the docs? Here's a TL/DR:
- Modules' Name List
- Remotes' Name List
- Remotes' URL List and Map
- Remote definition with object
- Default async
npm i @schirrel/module-federation-enhanced-plugin
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"
},
}),
],
};
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: