* Add basic-server-vue example Demonstrates MCP App SDK usage with Vue 3, providing framework parity alongside the existing React and vanilla JS examples. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add basic-server-svelte example Demonstrates MCP App SDK usage with Svelte, providing parity with the existing basic-server-react and basic-server-vue examples. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add basic-server-preact example Demonstrates MCP App SDK usage with Preact, providing another lightweight framework option alongside the existing React, Vue, and Svelte examples. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add basic-server-solid example Demonstrates MCP App SDK usage with Solid.js, providing another reactive framework option alongside the existing React, Vue, Svelte, and Preact examples. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Add framework GitHub links to README Link each framework name to its official GitHub repo in basic examples list. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
606 B
TypeScript
25 lines
606 B
TypeScript
import { defineConfig } from "vite";
|
|
import preact from "@preact/preset-vite";
|
|
import { viteSingleFile } from "vite-plugin-singlefile";
|
|
|
|
const INPUT = process.env.INPUT;
|
|
if (!INPUT) {
|
|
throw new Error("INPUT environment variable is not set");
|
|
}
|
|
|
|
const isDevelopment = process.env.NODE_ENV === "development";
|
|
|
|
export default defineConfig({
|
|
plugins: [preact(), viteSingleFile()],
|
|
build: {
|
|
sourcemap: isDevelopment ? "inline" : undefined,
|
|
cssMinify: !isDevelopment,
|
|
minify: !isDevelopment,
|
|
|
|
rollupOptions: {
|
|
input: INPUT,
|
|
},
|
|
outDir: "dist",
|
|
emptyOutDir: false,
|
|
},
|
|
});
|