Skip to content

Commit 84d4fe0

Browse files
authored
revert: vantResolver partial name (unplugin#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy