mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
Plugin discovery, esbuild builds (optional peer dependency), vm evaluation with pluginFile and mapStack, dependency installs, a watcher with dirty marks and rollout across hosts; host.load and host.reload per plugin with the closure rule; examples 35-39 as folders with real plugin directories.
7 lines
334 B
TypeScript
7 lines
334 B
TypeScript
// Fixture plugin (slice 7c): the server facet, serving `Index` with the same label.
|
|
|
|
import { constant, defineFacet } from "@earendil-works/chord/next";
|
|
import { Index } from "../contracts/contract.ts";
|
|
import { label } from "./label.ts";
|
|
|
|
export default defineFacet((host) => host.serve(Index, () => ({ label: constant(label) })));
|