diff --git a/packages/vite-config/src/index.ts b/packages/vite-config/src/index.ts index c24f582e62..d60bede350 100644 --- a/packages/vite-config/src/index.ts +++ b/packages/vite-config/src/index.ts @@ -18,7 +18,12 @@ import { searchForWorkspaceRoot, type UserConfig } from 'vite'; */ export function workspaceAppViteConfig(app: { port: number }): UserConfig { return { - plugins: [sveltekit(), tailwindcss()], + // A consuming app's `@sveltejs/kit` and this package can resolve different + // bun peer-variant copies of the same `vite` version (`vite@7.3.5` vs + // `vite@7.3.5+`), whose `Plugin` types are then nominally unrelated, + // so `svelte-check` rejects the array against this package's `UserConfig`. + // One vite runs at runtime; bridge the array to this package's plugin type. + plugins: [sveltekit(), tailwindcss()] as UserConfig['plugins'], resolve: { dedupe: ['yjs'], },