File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,14 @@ import {
88 VantVue2Resolver ,
99} from './resolvers/vant.js' ;
1010
11- function resolveProjectDep ( opts : { pkg : any ; cwd : string ; dep : string } ) {
11+ function resolveProjectDep ( opts : {
12+ pkg : {
13+ dependencies ?: Record < string , string > ;
14+ devDependencies ?: Record < string , string > ;
15+ } ;
16+ cwd : string ;
17+ dep : string ;
18+ } ) {
1219 if (
1320 opts . pkg . dependencies ?. [ opts . dep ] ||
1421 opts . pkg . devDependencies ?. [ opts . dep ]
@@ -96,8 +103,7 @@ export default (api: IApi) => {
96103 if ( components . length ) {
97104 vueUseComponents = 'Vue' ;
98105
99- componentsContent =
100- `import { ` + components . join ( ',' ) + ` } from 'vant';` ;
106+ componentsContent = `import { ${ components . join ( ',' ) } } from 'vant';` ;
101107
102108 components . forEach ( ( comp : string ) => {
103109 componentsStyleContent += `import 'vant/es/${ kebabCase ( comp ) } /style/index';\n` ;
You can’t perform that action at this time.
0 commit comments