构建出错
agileago opened this issue · 0 comments
agileago commented
Describe the bug
使用vant的时候,vite build
构建报错
[vite]: Rollup failed to resolve import "vant/es/lazyload" from "src/main.ts".
Libarary Info(please complete the following information):
Libarary: vant
- Version [e.g. 22]
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
** Error message**
Additional context