From 216441d3564e00aabfac7e8acf346e34a5db9598 Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Fri, 24 Apr 2026 16:50:12 -0700 Subject: Add Vite playground for local development MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit npm run dev boots a Vite + Svelte 5 server at localhost:5173, importing GraphiQL.svelte directly from source/library. HMR reflects changes without a package rebuild. Points at the public Countries API by default — swap playground/src/App.svelte for your own endpoint. --- vite.config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 vite.config.ts (limited to 'vite.config.ts') diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..be9ad40 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,10 @@ +import { svelte } from "@sveltejs/vite-plugin-svelte"; +import { defineConfig } from "vite"; + +export default defineConfig({ + plugins: [svelte()], + root: "playground", + server: { + port: 5173 + } +}); -- cgit v1.2.3