Skip to content

Commit 6d3123b

Browse files
authored
fix: include components in content (#750)
1 parent 2bd5ca9 commit 6d3123b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/resolvers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const resolveContentPaths = (srcDir: string, nuxt = useNuxt()) => {
3737
if (!importDirs.includes(utilsDir)) importDirs.push(utilsDir)
3838

3939
return [
40+
r(`components/**/*${sfcExtensions}`),
4041
...(() => {
4142
if (nuxt.options.components) {
4243
return (Array.isArray(nuxt.options.components) ? nuxt.options.components : typeof nuxt.options.components === 'boolean' ? ['components'] : nuxt.options.components.dirs).map(d => `${resolveAlias(typeof d === 'string' ? d : d.path)}/**/*${sfcExtensions}`)

0 commit comments

Comments
 (0)