astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
14 lines (13 loc) • 349 B
JavaScript
/**
* The server-island mappings for a manifest. Deliberately NOT memoized: the
* manifest thunk is a module import, which is cheap.
*/
export async function getServerIslands(manifest) {
if (manifest.serverIslandMappings) {
return manifest.serverIslandMappings();
}
return {
serverIslandMap: new Map(),
serverIslandNameMap: new Map()
};
}