We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6da8656 commit b068b07Copy full SHA for b068b07
README.md
@@ -227,10 +227,10 @@ You can also write your own resolver quickly:
227
Components({
228
resolvers: [
229
// example of importing Vant
230
- (name) => {
231
- // where `name` is always CapitalCase
232
- if (name.startsWith('Van'))
233
- return { importName: name.slice(3), path: 'vant' }
+ (componentName) => {
+ // where `componentName` is always CapitalCase
+ if (componentName.startsWith('Van'))
+ return { name: name.slice(3), from: 'vant' }
234
},
235
],
236
})
0 commit comments