MCP Apps Kit - v0.5.0
    Preparing search index...

    Interface BuildOptions

    Options for the React UI build process.

    interface BuildOptions {
        cwd?: string;
        external?: string[];
        globalCss?: string;
        minify?: boolean;
        outDir?: string;
        sourcemap?: boolean;
        template?: (options: TemplateOptions) => string;
    }
    Index

    Properties

    cwd?: string

    Working directory for resolving component paths.

    process.cwd()
    
    external?: string[]

    External packages to exclude from the bundle. These packages must be available at runtime.

    Note: React, ReactDOM, and @mcp-apps-kit/ui-react are always bundled to ensure the HTML is self-contained.

    globalCss?: string

    Path to a CSS file to inject into all UIs. Useful for global styles or CSS reset.

    minify?: boolean

    Minify the output JavaScript and CSS.

    true in production, false in development
    
    outDir?: string

    Output directory for compiled HTML files. If not specified, HTML is only returned in memory.

    "./dist/ui"
    
    sourcemap?: boolean

    Include source maps in the output. Useful for debugging but increases bundle size.

    false
    
    template?: (options: TemplateOptions) => string

    Custom HTML template function. If not provided, a default template is used.