From a6338a0b124f54bda7ba3fe64be1d6173e118d00 Mon Sep 17 00:00:00 2001 From: "S. Elliott Johnson" Date: Wed, 17 May 2023 05:35:06 -0600 Subject: [PATCH] fix: type `vitePlugin` in config (#9946) * fix: type `vitePlugin` in config * changeset --- .changeset/lemon-lamps-approve.md | 5 +++++ packages/kit/types/index.d.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/lemon-lamps-approve.md diff --git a/.changeset/lemon-lamps-approve.md b/.changeset/lemon-lamps-approve.md new file mode 100644 index 000000000000..7054d9c83194 --- /dev/null +++ b/.changeset/lemon-lamps-approve.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/kit': patch +--- + +fix: add typing for `vitePlugin` to `Config` diff --git a/packages/kit/types/index.d.ts b/packages/kit/types/index.d.ts index 55c4589ec8a4..ba4966a010ae 100644 --- a/packages/kit/types/index.d.ts +++ b/packages/kit/types/index.d.ts @@ -20,6 +20,7 @@ import { UniqueInterface } from './private.js'; import { BuildData, SSRNodeLoader, SSRRoute, ValidatedConfig } from './internal.js'; +import type { PluginOptions } from '@sveltejs/vite-plugin-svelte'; export { PrerenderOption } from './private.js'; @@ -186,6 +187,8 @@ export interface Config { }; /** Preprocessor options, if any. Preprocessing can alternatively also be done through Vite's preprocessor capabilities. */ preprocess?: any; + /** `vite-plugin-svelte` plugin options. */ + vitePlugin?: PluginOptions; /** Any additional options required by tooling that integrates with Svelte. */ [key: string]: any; }