File tree 2 files changed +24
-6
lines changed
2 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,18 @@ export interface Options {
45
45
reactivityTransform? : boolean | string | RegExp | (string | RegExp )[]
46
46
47
47
// options to pass on to vue/compiler-sfc
48
- script? : Partial <SFCScriptCompileOptions >
49
- template? : Partial <SFCTemplateCompileOptions >
50
- style? : Partial <SFCStyleCompileOptions >
48
+ script? : Partial <Pick <SFCScriptCompileOptions , ' babelParserPlugins' >>
49
+ template? : Partial <
50
+ Pick <
51
+ SFCTemplateCompileOptions ,
52
+ | ' compiler'
53
+ | ' compilerOptions'
54
+ | ' preprocessOptions'
55
+ | ' preprocessCustomRequire'
56
+ | ' transformAssetUrls'
57
+ >
58
+ >
59
+ style? : Partial <Pick <SFCStyleCompileOptions , ' trim' >>
51
60
}
52
61
```
53
62
Original file line number Diff line number Diff line change @@ -30,9 +30,18 @@ export interface Options {
30
30
isProduction ?: boolean
31
31
32
32
// options to pass on to vue/compiler-sfc
33
- script ?: Partial < SFCScriptCompileOptions >
34
- template ?: Partial < SFCTemplateCompileOptions >
35
- style ?: Partial < SFCStyleCompileOptions >
33
+ script ?: Partial < Pick < SFCScriptCompileOptions , 'babelParserPlugins' > >
34
+ template ?: Partial <
35
+ Pick <
36
+ SFCTemplateCompileOptions ,
37
+ | 'compiler'
38
+ | 'compilerOptions'
39
+ | 'preprocessOptions'
40
+ | 'preprocessCustomRequire'
41
+ | 'transformAssetUrls'
42
+ >
43
+ >
44
+ style ?: Partial < Pick < SFCStyleCompileOptions , 'trim' > >
36
45
37
46
/**
38
47
* Transform Vue SFCs into custom elements.
You can’t perform that action at this time.
0 commit comments