Skip to content

Commit db05959

Browse files
josh-hemphillantfu
andauthored
feat(resolver): add Vuetify 3 Beta resolver (#335)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
1 parent 89ff1dd commit db05959

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/core/resolvers/vuetify.ts

+15
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,18 @@ export function VuetifyResolver(): ComponentResolver {
1414
},
1515
}
1616
}
17+
18+
/**
19+
* Resolver for Vuetify 3 Beta
20+
*
21+
* @link https://github.com/vuetifyjs/vuetify
22+
*/
23+
export function Vuetify3Resolver(): ComponentResolver {
24+
return {
25+
type: 'component',
26+
resolve: (name: string) => {
27+
if (name.match(/^V[A-Z]/))
28+
return { importName: name, path: 'vuetify/components' }
29+
},
30+
}
31+
}

0 commit comments

Comments
 (0)