From c16e7f99e697ded21e24c27d31f07fb49691a2bd Mon Sep 17 00:00:00 2001 From: oekazuma Date: Sat, 4 Jul 2026 21:41:27 +0900 Subject: [PATCH] chore: changeset for install-wizard Vite plugin targets Forgot to add this in #99. --- .changeset/install-vite-targets.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/install-vite-targets.md diff --git a/.changeset/install-vite-targets.md b/.changeset/install-vite-targets.md new file mode 100644 index 000000000..851438330 --- /dev/null +++ b/.changeset/install-vite-targets.md @@ -0,0 +1,5 @@ +--- +'svelte-vitals': minor +--- + +`npx svelte-vitals install` can now also set up `@svelte-vitals/vite`: `--client vite-plugin` registers the build-mode plugin in `vite.config.{ts,js,mjs}`, and `--client vite-dev-overlay` wires the dev-overlay hook into `src/hooks.server.{ts,js}`. Both use a `magicast` codemod that only edits a file whose shape it confidently recognizes — anything else is left untouched and a snippet is printed instead. When either target is written and `@svelte-vitals/vite` isn't already a dependency, it's installed automatically via the detected package manager. `--force` does not apply to these two targets — an existing registration is always left as-is.