@@ -20,45 +20,48 @@ export interface Options {
20
20
include? : string | RegExp | (string | RegExp )[]
21
21
exclude? : string | RegExp | (string | RegExp )[]
22
22
23
- ssr? : boolean
24
23
isProduction? : boolean
25
24
25
+ // options to pass on to vue/compiler-sfc
26
+ script? : Partial <Pick <SFCScriptCompileOptions , ' babelParserPlugins' >>
27
+ template? : Partial <
28
+ Pick <
29
+ SFCTemplateCompileOptions ,
30
+ | ' compiler'
31
+ | ' compilerOptions'
32
+ | ' preprocessOptions'
33
+ | ' preprocessCustomRequire'
34
+ | ' transformAssetUrls'
35
+ >
36
+ >
37
+ style? : Partial <Pick <SFCStyleCompileOptions , ' trim' >>
38
+
26
39
/**
27
- * Transform Vue SFCs into custom elements (requires vue@^3.2.0)
28
- * - `true` -> all `*.vue` imports are converted into custom elements
29
- * - `string | RegExp` -> matched files are converted into custom elements
40
+ * Transform Vue SFCs into custom elements.
41
+ * - `true`: all `*.vue` imports are converted into custom elements
42
+ * - `string | RegExp`: matched files are converted into custom elements
30
43
*
31
44
* @default /\.ce\.vue$/
32
45
*/
33
46
customElement? : boolean | string | RegExp | (string | RegExp )[]
34
47
35
48
/**
36
- * Enable Vue reactivity transform (experimental, requires vue@^3.2.25).
37
- * https://github.com/vuejs/core/tree/master/packages/reactivity-transform
38
- *
49
+ * Enable Vue reactivity transform (experimental).
50
+ * https://vuejs.org/guide/extras/reactivity-transform.html
39
51
* - `true`: transform will be enabled for all vue,js(x),ts(x) files except
40
52
* those inside node_modules
41
53
* - `string | RegExp`: apply to vue + only matched files (will include
42
- * node_modules, so specify directories in necessary)
54
+ * node_modules, so specify directories if necessary)
43
55
* - `false`: disable in all cases
44
56
*
45
57
* @default false
46
58
*/
47
59
reactivityTransform? : boolean | string | RegExp | (string | RegExp )[]
48
60
49
- // options to pass on to vue/compiler-sfc
50
- script? : Partial <Pick <SFCScriptCompileOptions , ' babelParserPlugins' >>
51
- template? : Partial <
52
- Pick <
53
- SFCTemplateCompileOptions ,
54
- | ' compiler'
55
- | ' compilerOptions'
56
- | ' preprocessOptions'
57
- | ' preprocessCustomRequire'
58
- | ' transformAssetUrls'
59
- >
60
- >
61
- style? : Partial <Pick <SFCStyleCompileOptions , ' trim' >>
61
+ /**
62
+ * Use custom compiler-sfc instance. Can be used to force a specific version.
63
+ */
64
+ compiler? : typeof _compiler
62
65
}
63
66
```
64
67
0 commit comments