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