@@ -34,14 +34,6 @@ export default {
34
34
// using `include` and `exclude`
35
35
include: ' src/components/**/*.svelte' ,
36
36
37
- // By default, the client-side compiler is used. You
38
- // can also use the server-side rendering compiler
39
- generate: ' ssr' ,
40
-
41
- // ensure that extra attributes are added to head
42
- // elements for hydration (used with generate: 'ssr')
43
- hydratable: true ,
44
-
45
37
// Optionally, preprocess components with svelte.preprocess:
46
38
// https://svelte.dev/docs#svelte_preprocess
47
39
preprocess: {
@@ -53,10 +45,6 @@ export default {
53
45
// Emit CSS as "files" for other plugins to process. default is true
54
46
emitCss: false ,
55
47
56
- // You can optionally set 'customElement' to 'true' to compile
57
- // your components to custom elements (aka web elements)
58
- customElement: false ,
59
-
60
48
// Warnings are normally passed straight to Rollup. You can
61
49
// optionally handle them here, for example to squelch
62
50
// warnings with a particular code
@@ -66,6 +54,22 @@ export default {
66
54
67
55
// let Rollup handle all other warnings normally
68
56
handler (warning);
57
+ },
58
+
59
+ // You can pass any of the Svelte compiler oiptions
60
+ compilerOptions: {
61
+
62
+ // By default, the client-side compiler is used. You
63
+ // can also use the server-side rendering compiler
64
+ generate: ' ssr' ,
65
+
66
+ // ensure that extra attributes are added to head
67
+ // elements for hydration (used with generate: 'ssr')
68
+ hydratable: true ,
69
+
70
+ // You can optionally set 'customElement' to 'true' to compile
71
+ // your components to custom elements (aka web elements)
72
+ customElement: false
69
73
}
70
74
}),
71
75
// see NOTICE below
0 commit comments