Closed agileago closed 2 years ago
Describe the bug 使用vant的时候,vite build构建报错
vite build
[vite]: Rollup failed to resolve import "vant/es/lazyload" from "src/main.ts".
Libarary Info(please complete the following information): Libarary: vant
To Reproduce
viteImp({ libList: [ { libName: 'vant', // replaceOldImport: false, style: name => `vant/es/${name}/style/index.js`, }, ], }),
Expected behavior build right , when i set replaceOldImport false. it will success
replaceOldImport
Error message
Additional context
Describe the bug 使用vant的时候,
vite build
构建报错Libarary Info(please complete the following information): Libarary: vant
To Reproduce
Expected behavior build right , when i set
replaceOldImport
false. it will successError message
Additional context