1
1
import { Plugin , RollupWarning } from 'rollup' ;
2
2
import { PreprocessorGroup } from 'svelte/types/compiler/preprocess' ;
3
+ import { CompileOptions } from 'svelte/types/compiler/interfaces' ;
3
4
4
5
interface Css {
5
6
code : any ;
@@ -25,7 +26,7 @@ declare class CssWriter {
25
26
26
27
type CssEmitter = ( css : CssWriter ) => any ;
27
28
28
- interface Options {
29
+ interface Options extends CompileOptions {
29
30
/**
30
31
* By default, all .svelte and .html files are compiled
31
32
* @default ['.html', '.svelte']
@@ -42,17 +43,12 @@ interface Options {
42
43
* @type {IncludeAndExclude }
43
44
*/
44
45
include ?: string ;
46
+
45
47
/**
46
48
* @type {IncludeAndExclude }
47
49
*/
48
50
exclude ?: string ;
49
51
50
- /**
51
- * By default, the client-side compiler is used. You
52
- * can also use the server-side rendering compiler
53
- */
54
- generate ?: 'dom' | 'ssr' | false ;
55
-
56
52
/**
57
53
* Optionally, preprocess components with svelte.preprocess:
58
54
* https://svelte.dev/docs#svelte_preprocess
@@ -75,13 +71,6 @@ interface Options {
75
71
*/
76
72
css ?: false | CssEmitter ;
77
73
78
-
79
- /**
80
- * Compile Svelte components to custom elements (aka web components).
81
- * @default false
82
- */
83
- customElement ?: boolean ;
84
-
85
74
/**
86
75
* let Rollup handle all other warnings normally
87
76
*/
0 commit comments