1 | import { Plugin, RollupWarning } from 'rollup';
|
2 | import { PreprocessorGroup } from 'svelte/types/compiler/preprocess';
|
3 | import { CompileOptions } from 'svelte/types/compiler/interfaces';
|
4 |
|
5 | type Arrayable<T> = T | T[];
|
6 |
|
7 | type WarningHandler = (warning: RollupWarning | string) => void;
|
8 |
|
9 | interface Options {
|
10 |
|
11 | include: Arrayable<string>;
|
12 |
|
13 |
|
14 | exclude: Arrayable<string>;
|
15 |
|
16 | |
17 |
|
18 |
|
19 |
|
20 | extensions: string[];
|
21 |
|
22 | |
23 |
|
24 |
|
25 |
|
26 | preprocess: Arrayable<PreprocessorGroup>;
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | emitCss: boolean;
|
35 |
|
36 |
|
37 | compilerOptions: CompileOptions;
|
38 |
|
39 |
|
40 | onwarn(warning: RollupWarning, handler: WarningHandler): void;
|
41 | }
|
42 |
|
43 | export default function svelte(options?: Partial<Options>): Plugin;
|