@@ -22,7 +22,47 @@ export interface Options {
22
22
23
23
isProduction? : boolean
24
24
25
- // options to pass on to vue/compiler-sfc
25
+ /**
26
+ * Requires @vitejs/plugin-vue@^5.1.0
27
+ */
28
+ features? : {
29
+ /**
30
+ * Enable reactive destructure for `defineProps`.
31
+ * - Available in Vue 3.4 and later.
32
+ * - **default:** `false` in Vue 3.4 (**experimental**), `true` in Vue 3.5+
33
+ */
34
+ propsDestructure? : boolean
35
+ /**
36
+ * Transform Vue SFCs into custom elements.
37
+ * - `true`: all `*.vue` imports are converted into custom elements
38
+ * - `string | RegExp`: matched files are converted into custom elements
39
+ * - **default:** /\.ce\.vue$/
40
+ */
41
+ customElement? : boolean | string | RegExp | (string | RegExp )[]
42
+ /**
43
+ * Set to `false` to disable Options API support and allow related code in
44
+ * Vue core to be dropped via dead-code elimination in production builds,
45
+ * resulting in smaller bundles.
46
+ * - **default:** `true`
47
+ */
48
+ optionsAPI? : boolean
49
+ /**
50
+ * Set to `true` to enable devtools support in production builds.
51
+ * Results in slightly larger bundles.
52
+ * - **default:** `false`
53
+ */
54
+ prodDevtools? : boolean
55
+ /**
56
+ * Set to `true` to enable detailed information for hydration mismatch
57
+ * errors in production builds. Results in slightly larger bundles.
58
+ * - **default:** `false`
59
+ */
60
+ prodHydrationMismatchDetails? : boolean
61
+ }
62
+
63
+ // `script`, `template` and `style` are lower-level compiler options
64
+ // to pass on to respective APIs of `vue/compiler-sfc`
65
+
26
66
script? : Partial <
27
67
Omit <
28
68
SFCScriptCompileOptions ,
@@ -33,7 +73,6 @@ export interface Options {
33
73
| ' sourceMap'
34
74
| ' genDefaultAs'
35
75
| ' customElement'
36
- | ' defineModel'
37
76
>
38
77
>
39
78
@@ -53,6 +92,7 @@ export interface Options {
53
92
| ' preprocessLang'
54
93
>
55
94
>
95
+
56
96
style? : Partial <
57
97
Omit <
58
98
SFCStyleCompileOptions ,
@@ -72,18 +112,14 @@ export interface Options {
72
112
>
73
113
74
114
/**
75
- * Transform Vue SFCs into custom elements.
76
- * - `true`: all `*.vue` imports are converted into custom elements
77
- * - `string | RegExp`: matched files are converted into custom elements
78
- *
79
- * @default /\.ce\.vue$/
115
+ * Use custom compiler-sfc instance. Can be used to force a specific version.
80
116
*/
81
- customElement ? : boolean | string | RegExp | ( string | RegExp )[]
117
+ compiler ? : typeof _compiler
82
118
83
119
/**
84
- * Use custom compiler-sfc instance. Can be used to force a specific version .
120
+ * @deprecated moved to `features.customElement` .
85
121
*/
86
- compiler ? : typeof _compiler
122
+ customElements ? : boolean | string | RegExp | ( string | RegExp )[]
87
123
}
88
124
```
89
125
0 commit comments