Closed xiejun-net closed 1 year ago
build试过了吗
build试过了吗 Build过了,引用Toast组件会有问题,引用Button组件不会
这是是否引用Toast组件,Home页面对应js的大小对比
好吧,我大概知道了,因为Toast组件引用了整个 react-vant/icons
好吧,我大概知道了,因为Toast组件引用了整个 react-vant/icons
icons按理也支持tree shaking的 你退回到3.0.2试试,3.0.4icons有轻微调整 可能影响到了
Which React Vant packages are impacted?
react-vant
(React Vant core)react-vant-icons
(React Vant Icon)What version of React Vant are you using?
3.0.4
Reproduce live demo(codesandebox or stackblitz)?
No response
Descripition