File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ export interface VuePluginOptions {
24
24
* Include files or directories.
25
25
* @default `'.vue'`
26
26
*/
27
- include ?: string
27
+ include ?: Array < string | RegExp > | string | RegExp
28
28
/**
29
29
* Exclude files or directories.
30
30
* @default `undefined`
31
31
*/
32
- exclude ?: string
32
+ exclude ?: Array < string | RegExp > | string | RegExp
33
33
/**
34
34
* Default language for blocks.
35
35
*
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ export interface VuePartRequestCreator {
30
30
}
31
31
32
32
export function createVueFilter (
33
- include : string | string [ ] = [ '*.vue' , '**/* .vue' ] ,
34
- exclude : string | string [ ] = [ ]
33
+ include : Array < string | RegExp > | string | RegExp = [ / \ .v u e $ / i ] ,
34
+ exclude : Array < string | RegExp > | string | RegExp = [ ]
35
35
) : ( file : string ) => boolean {
36
36
const filter = createFilter ( include , exclude )
37
37
You can’t perform that action at this time.
0 commit comments