@@ -2,7 +2,6 @@ import 'svelte'; // pick up `declare module "*.svelte"`
2
2
import 'vite/client' ; // pick up `declare module "*.jpg"`, etc.
3
3
import '../types/ambient.js' ;
4
4
5
- import { CompileOptions } from 'svelte/compiler' ;
6
5
import {
7
6
AdapterEntry ,
8
7
CspDirectives ,
@@ -18,7 +17,7 @@ import {
18
17
RouteSegment
19
18
} from '../types/private.js' ;
20
19
import { BuildData , SSRNodeLoader , SSRRoute , ValidatedConfig } from 'types' ;
21
- import type { PluginOptions } from '@sveltejs/vite-plugin-svelte' ;
20
+ import type { SvelteConfig } from '@sveltejs/vite-plugin-svelte' ;
22
21
23
22
export { PrerenderOption } from '../types/private.js' ;
24
23
@@ -188,23 +187,16 @@ export interface Builder {
188
187
compress : ( directory : string ) => Promise < void > ;
189
188
}
190
189
191
- export interface Config {
192
- /**
193
- * Options passed to [`svelte.compile`](https://svelte.dev/docs/svelte/svelte-compiler#CompileOptions).
194
- * @default {}
195
- */
196
- compilerOptions ?: CompileOptions ;
190
+ /**
191
+ * An extension of [`vite-plugin-svelte`'s options](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#svelte-options).
192
+ */
193
+ export interface Config extends SvelteConfig {
197
194
/**
198
- * List of file extensions that should be treated as Svelte files.
199
- * @default [".svelte"]
195
+ * SvelteKit options.
196
+ *
197
+ * @see https://svelte.dev/docs/kit/configuration
200
198
*/
201
- extensions ?: string [ ] ;
202
- /** SvelteKit options */
203
199
kit ?: KitConfig ;
204
- /** Preprocessor options, if any. Preprocessing can alternatively also be done through Vite's preprocessor capabilities. */
205
- preprocess ?: any ;
206
- /** `vite-plugin-svelte` plugin options. */
207
- vitePlugin ?: PluginOptions ;
208
200
/** Any additional options required by tooling that integrates with Svelte. */
209
201
[ key : string ] : any ;
210
202
}
0 commit comments