From 50a9fa13958a8dd0becbd66f2b3f3437aae0aa1d Mon Sep 17 00:00:00 2001 From: Seppe Dekeyser Date: Thu, 7 Mar 2024 07:41:17 +0100 Subject: [PATCH] Fix vitePreprocess import in init script (#1279) --- .changeset/big-pianos-pull.md | 5 +++++ packages/houdini/src/cmd/init.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/big-pianos-pull.md diff --git a/.changeset/big-pianos-pull.md b/.changeset/big-pianos-pull.md new file mode 100644 index 0000000000..19d3f6b798 --- /dev/null +++ b/.changeset/big-pianos-pull.md @@ -0,0 +1,5 @@ +--- +'houdini': patch +--- + +Fix init script to use the correct vitePreprocess import diff --git a/packages/houdini/src/cmd/init.ts b/packages/houdini/src/cmd/init.ts index ce42a84041..d90ee3471a 100644 --- a/packages/houdini/src/cmd/init.ts +++ b/packages/houdini/src/cmd/init.ts @@ -412,7 +412,7 @@ async function svelteConfig(targetPath: string, typescript: boolean) { const svelteConfigPath = path.join(targetPath, 'svelte.config.js') const newContentTs = `import adapter from '@sveltejs/adapter-auto'; -import { vitePreprocess } from '@sveltejs/kit/vite'; +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */ const config = {