mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(auto-import-resolver): type mismatch in TS projects (#12243)
This commit is contained in:
parent
5ccaa836ee
commit
56b718f597
@ -43,7 +43,7 @@ export function VantResolver(options: VantResolverOptions = {}) {
|
|||||||
const moduleType = getModuleType(ssr);
|
const moduleType = getModuleType(ssr);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
type: 'component',
|
type: 'component' as const,
|
||||||
resolve: (name: string) => {
|
resolve: (name: string) => {
|
||||||
if (name.startsWith('Van')) {
|
if (name.startsWith('Van')) {
|
||||||
const partialName = name.slice(3);
|
const partialName = name.slice(3);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user