From e5ccce18eb0bf343333aeb5a292a0818c8bde54e Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 14 Sep 2023 10:07:34 +0800 Subject: [PATCH] fix: revert `convertPathToPattern` --- src/core/fs/glob.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/fs/glob.ts b/src/core/fs/glob.ts index 011aa74e..bea9ee48 100644 --- a/src/core/fs/glob.ts +++ b/src/core/fs/glob.ts @@ -7,8 +7,6 @@ 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,