@appshell/loader v0.4.0
@appshell/loader
Dynamically load Appshell components for micro-frontends built with Appshell and Webpack Module federation.
Working examples can be found here.
Getting Started
To begin, you'll need to install @appshell/loader:
npm install @appshell/loader --save-devor
yarn add -D @appshell/loaderor
pnpm add -D @appshell/loaderThe default export from this package is the loader function. It is given the global appshell configuration, and returns an async function that can be called to dynamically load Appshell components.
import componentLoader from '@appshell/loader';
const load = componentLoader(config);
const Component = load<MyComponent>('MyModule/MyComponent');
render(<Component />);Where does the global appshell configuration come from?
See @appshell/cli
appshell generate global-config --registry appshell_registry_pathDo you have any framework specific loaders?
See @appshell/react for a
Reactloader.
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago