From 4645ed55513927780616e52d82f5321b793876a9 Mon Sep 17 00:00:00 2001 From: Christian Bager Bach Houmann Date: Mon, 12 Oct 2026 19:55:56 +0200 Subject: [PATCH] build: drop vitePreprocess from the shared Svelte config svelte-check and the Vitest Svelte plugin load svelte.config.mjs, and its vitePreprocess() import pulls in Vite on every svelte-check run. The production build never reads this file and compiles every component without a preprocessor, so no component depends on one. Without it, svelte-check and Vitest compile components the way the bundle does. --- svelte.config.mjs | 3 --- 1 file changed, 3 deletions(-) diff --git a/svelte.config.mjs b/svelte.config.mjs index 7cb8e2c79..1e37935cf 100644 --- a/svelte.config.mjs +++ b/svelte.config.mjs @@ -1,5 +1,3 @@ -import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; - // Shared Svelte config for the tooling that looks it up: svelte-check, the // vite-plugin-svelte test pipeline. It also silences // vite-plugin-svelte's "no Svelte config found" notice during tests. @@ -8,6 +6,5 @@ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; // its own compilerOptions (svelteCompilerOptions.mjs) in // esbuild.config.mjs. Keep this minimal so the two paths stay equivalent. export default { - preprocess: vitePreprocess(), compilerOptions: { runes: true }, };