mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
perf(theme): optimize deps include swiper
This commit is contained in:
parent
7dc63192c8
commit
fcb2ca4507
@ -25,7 +25,7 @@ export function extendsBundlerOptions(bundlerOptions: any, app: App): void {
|
||||
])
|
||||
|
||||
if (isPackageExists('swiper')) {
|
||||
addViteOptimizeDepsInclude(bundlerOptions, app, 'swiper', true)
|
||||
addViteOptimizeDepsInclude(bundlerOptions, app, ['swiper/modules', 'swiper/vue'], true)
|
||||
addViteSsrNoExternal(bundlerOptions, app, ['swiper'])
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user