Skip to content

@ogygia/federation · API

@ogygia/federation/vite

The federation() Vite plugin, which serves the federation endpoints from ogygia's handle and keeps the exports another app's page needs to wake this app's islands.

On this page

This page is generated from the package’s own .d.ts files on every build, so the signatures, descriptions and examples below always match the source. Federation explains what it does.

Exports federation

import { … } from '@ogygia/federation/vite';

federation

function

federation(): fragment federation, listed beside ogygia() in vite.config plugins. Its server realm serves the federation protocol from the handle; federate({ … }) in hooks.server.ts declares the app's identity and peers. This app's island entries keep their foreign-hydrate exports, so a peer's page can host and wake them.

function federation(): [OgygiaPlugin, Plugin];