MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / RollupEmitContext

Interface RollupEmitContext

packages/hosts/mcp-apps-shell/src/vite.ts:262–271  ·  view source on GitHub ↗

What this plugin needs from the hook context Vite calls it with.

Source from the content-addressed store, hash-verified

260
261/** What this plugin needs from the hook context Vite calls it with. */
262interface RollupEmitContext {
263 readonly emitFile: (file: {
264 readonly type: "asset";
265 readonly fileName: string;
266 readonly source: string;
267 }) => void;
268 /** Vite's per-hook environment. `consumer` is "client" for the browser build
269 * and "server" for an SSR/worker one. */
270 readonly environment?: { readonly config?: { readonly consumer?: string } };
271}
272
273/**
274 * Serve the built shell document to the app at a stable URL.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected