We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91c3120 commit 7ac1b36Copy full SHA for 7ac1b36
src/fs/glob.ts
@@ -10,9 +10,10 @@ export function searchComponents(ctx: Context) {
10
const files = fg.sync(ctx.globs, {
11
ignore: ['node_modules'],
12
onlyFiles: true,
13
+ cwd: ctx.viteConfig?.root || process.cwd(),
14
})
15
- if (!files.length)
16
+ if (!files.length && !ctx.options.customComponentResolvers?.length)
17
console.warn('[vite-plugin-components] no components found')
18
19
debug(`${files.length} components found.`)
0 commit comments