When using 1 Element Plus component and running vite-ssr build, all content from Element Plus is put into the JS chunk which reaches over 1 MB. Tree shaking does not take effect.
When I build the SPA version though via vite build, tree shaking does work.
Versions:
Vite Config:
When using 1 Element Plus component and running
vite-ssr build
, all content from Element Plus is put into the JS chunk which reaches over 1 MB. Tree shaking does not take effect.When I build the SPA version though via
vite build
, tree shaking does work.