Skip to content

Commit

Permalink
fix: type vitePlugin in config (#9946)
Browse files Browse the repository at this point in the history
* fix: type `vitePlugin` in config

* changeset
  • Loading branch information
1 parent 8cf8ddb commit a6338a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-lamps-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

fix: add typing for `vitePlugin` to `Config`
3 changes: 3 additions & 0 deletions packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit a6338a0

Please sign in to comment.