Skip to content

Commit 84d4fe0

Browse files
authored
revert: vantResolver partial name (#378)
1 parent 3e48b82 commit 84d4fe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/resolvers/vant.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export function VantResolver(options: VantResolverOptions = {}): ComponentResolv
3636
return {
3737
type: 'component',
3838
resolve: (name: string) => {
39-
if (name.startsWith('Vant')) {
40-
const partialName = name.slice(4)
39+
if (name.startsWith('Van')) {
40+
const partialName = name.slice(3)
4141
return {
4242
name: partialName,
4343
from: `vant/${moduleType}`,

0 commit comments

Comments
 (0)