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. --- playground/src/main.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 playground/src/main.ts (limited to 'playground/src/main.ts') diff --git a/playground/src/main.ts b/playground/src/main.ts new file mode 100644 index 0000000..bf39df9 --- /dev/null +++ b/playground/src/main.ts @@ -0,0 +1,9 @@ +import { mount } from "svelte"; +import App from "./App.svelte"; + +const target = document.getElementById("app"); + +if (!target) + throw new Error("missing #app target"); + +mount(App, { target }); -- cgit v1.2.3