Complete docs

Signed-off-by: David Festal <dfestal@redhat.com>
This commit is contained in:
David Festal
2025-12-15 19:08:16 +01:00
parent 1f5dc0b787
commit 95693a951b
@@ -114,7 +114,8 @@ export async function loadRemote(
### Integration with Feature Loaders
Integration with frontend feature loaders is straightforward:
Standard Module Federation runtime API integrates very well with frontend feature loaders,
as shown in the example below:
```typescript title="packages/app/src/App.tsx"
import { createInstance } from '@module-federation/enhanced/runtime';
@@ -166,7 +167,9 @@ const app = createApp({
export default app.createRoot();
```
The [`dynamicFrontendFeaturesLoader`](https://github.com/backstage/backstage/blob/master/packages/frontend-dynamic-feature-loader/src/loader.ts) provided in the [`@backstage/frontend-dynamic-feature-loader`](https://github.com/backstage/backstage/blob/master/packages/frontend-dynamic-feature-loader/README.md) package, which provides an integrated solution to load module federation remotes as dynamic frontend plugins, is a more complete example of a feature loader based on the module federation support.
Note that, on top of the standard API, we plan to provide a more simplified way to configure module federation remotes.
Additionally, the [`dynamicFrontendFeaturesLoader`](https://github.com/backstage/backstage/blob/master/packages/frontend-dynamic-feature-loader/src/loader.ts) provided in the [`@backstage/frontend-dynamic-feature-loader`](https://github.com/backstage/backstage/blob/master/packages/frontend-dynamic-feature-loader/README.md) package, which provides an integrated solution to load module federation remotes as dynamic frontend plugins, is a more complete example of a feature loader based on the module federation support.
## Default Shared Dependencies