TLDR use vite-plugin-imp,on-demand to use libraries. Background Vite is becoming more and more popular among web developers In web application development, some commonly used tool libraries are often used: lodash, underscore, etc., or UI libraries antd, ant-design-vue, element-ui, element-plus, vant, etc. When you don’t use these libraries on demand in your project…