File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ export interface VuePluginOptions {
2424 * Include files or directories.
2525 * @default `'.vue'`
2626 */
27- include ?: string
27+ include ?: Array < string | RegExp > | string | RegExp
2828 /**
2929 * Exclude files or directories.
3030 * @default `undefined`
3131 */
32- exclude ?: string
32+ exclude ?: Array < string | RegExp > | string | RegExp
3333 /**
3434 * Default language for blocks.
3535 *
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ export interface VuePartRequestCreator {
3030}
3131
3232export 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 = [ ]
3535) : ( file : string ) => boolean {
3636 const filter = createFilter ( include , exclude )
3737
You can’t perform that action at this time.
0 commit comments