From 232a0f4a66b0e2a177f4959d260014529490873d Mon Sep 17 00:00:00 2001 From: Helen <353753678@qq.com> Date: Thu, 14 Sep 2023 10:03:05 +0800 Subject: [PATCH] feat: add support for path with brackets () (#677) --- src/core/fs/glob.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/fs/glob.ts b/src/core/fs/glob.ts index ba962bd6..21d0994b 100644 --- a/src/core/fs/glob.ts +++ b/src/core/fs/glob.ts @@ -7,7 +7,8 @@ const debug = Debug('unplugin-vue-components:glob') export function searchComponents(ctx: Context) { debug(`started with: [${ctx.options.globs.join(', ')}]`) const root = ctx.root - + + ctx.options.globs = ctx.options.globs.map((dir) => fg.convertPathToPattern(dir)) const files = fg.sync(ctx.options.globs, { ignore: ['node_modules'], onlyFiles: true,