Skip to content

Commit 232a0f4

Browse files
authored
feat: add support for path with brackets () (#677)
1 parent d51b953 commit 232a0f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/fs/glob.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ const debug = Debug('unplugin-vue-components:glob')
77
export function searchComponents(ctx: Context) {
88
debug(`started with: [${ctx.options.globs.join(', ')}]`)
99
const root = ctx.root
10-
10+
11+
ctx.options.globs = ctx.options.globs.map((dir) => fg.convertPathToPattern(dir))
1112
const files = fg.sync(ctx.options.globs, {
1213
ignore: ['node_modules'],
1314
onlyFiles: true,

0 commit comments

Comments
 (0)