@@ -17,6 +17,7 @@ import {
17
17
SFCTemplateCompileOptions ,
18
18
SFCTemplateCompileResults ,
19
19
SFCStyleCompileOptions ,
20
+ SFCAsyncStyleCompileOptions ,
20
21
} from '@vue/compiler-sfc'
21
22
import fs from 'fs'
22
23
import createDebugger from 'debug'
@@ -28,12 +29,7 @@ import { createFilter } from 'rollup-pluginutils'
28
29
29
30
const debug = createDebugger ( 'rollup-plugin-vue' )
30
31
31
- export interface Options
32
- extends Pick <
33
- SFCTemplateCompileOptions ,
34
- 'compiler' | 'compilerOptions' | 'transformAssetUrls'
35
- > ,
36
- Pick < SFCStyleCompileOptions , 'preprocessCustomRequire' > {
32
+ export interface Options {
37
33
include : string | RegExp | ( string | RegExp ) [ ]
38
34
exclude : string | RegExp | ( string | RegExp ) [ ]
39
35
target : 'node' | 'browser'
@@ -45,17 +41,14 @@ export interface Options
45
41
// rollup plugins
46
42
preprocessStyles ?: boolean
47
43
48
- // TODO this will be exposed via SFCAsyncStyleCompileOptions which we forgot
49
- // to export in @vue /compiler-sfc
50
- cssModulesOptions ?: {
51
- scopeBehaviour ?: 'global' | 'local'
52
- globalModulePaths ?: string [ ]
53
- generateScopedName ?:
54
- | string
55
- | ( ( name : string , filename : string , css : string ) => string )
56
- hashPrefix ?: string
57
- localsConvention ?: 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly'
58
- }
44
+ // sfc template options
45
+ compiler ?: SFCTemplateCompileOptions [ 'compiler' ]
46
+ compilerOptions ?: SFCTemplateCompileOptions [ 'compilerOptions' ]
47
+ transformAssetUrls ?: SFCTemplateCompileOptions [ 'transformAssetUrls' ]
48
+
49
+ // sfc style options
50
+ preprocessCustomRequire ?: SFCAsyncStyleCompileOptions [ 'preprocessCustomRequire' ]
51
+ cssModulesOptions ?: SFCAsyncStyleCompileOptions [ 'modulesOptions' ]
59
52
}
60
53
61
54
const defaultOptions : Options = {
0 commit comments