-
-
Notifications
You must be signed in to change notification settings - Fork 379
Open
Description
Versions:
"element-plus": "^2.0.1",
"vite-ssr": "^0.11.1",
"unplugin-auto-import": "^0.5.11",
"unplugin-icons": "^0.13.0",
"unplugin-vue-components": "^0.17.18",
"vite": "^2.7.13",
Vite Config:
plugins: [
Vue(),
SSR(),
AutoImport({
resolvers: [ElementPlusResolver()]
}),
Components({
resolvers: [
ElementPlusResolver({
ssr: true,
importStyle: 'sass'
})
]
})
]
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.
mihailtd and guska8
Metadata
Metadata
Assignees
Labels
No labels