We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5a9e0c commit 27c0320Copy full SHA for 27c0320
src/core/fs/glob.ts
@@ -1,12 +1,17 @@
1
import type { Context } from '../context'
2
import Debug from 'debug'
3
import { globSync } from 'tinyglobby'
4
+import { platform } from 'os'
5
6
const debug = Debug('unplugin-vue-components:glob')
7
8
export function searchComponents(ctx: Context) {
9
debug(`started with: [${ctx.options.globs.join(', ')}]`)
10
const root = ctx.root
11
+ // Fixed a bug that contained parentheses in the win path https://github.com/unplugin/unplugin-vue-components/issues/822
12
+ if (platform() === 'win32') {
13
+ ctx.options.globs = ctx.options.globs.map((dir) => fg.convertPathToPattern(dir))
14
+ }
15
const files = globSync(ctx.options.globs, {
16
ignore: ctx.options.globsExclude,
17
onlyFiles: true,
0 commit comments