diff --git a/packages/client/vite.config.ts b/packages/client/vite.config.ts index 058fc68538..b51ca31909 100644 --- a/packages/client/vite.config.ts +++ b/packages/client/vite.config.ts @@ -53,9 +53,8 @@ export default defineConfig(({ command, mode }) => { ], manifest: 'manifest.json', rollupOptions: { - external: { - 'swiper': 'swiper', - 'vue': 'vue', + optimizeDeps: { + exclude: ['swiper'], }, input: { app: './src/init.ts',