From 4dddb9f2e1e5a1e418909aa287371489c60a4850 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 8 Dec 2025 12:37:04 +0530 Subject: [PATCH] fix: exclude frappe-ui from optimiseDeps only on local --- frontend/vite.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index d1b1cd6d..68cbe5ec 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -5,7 +5,7 @@ import frappeui from 'frappe-ui/vite' import { VitePWA } from 'vite-plugin-pwa' // https://vitejs.dev/config/ -export default defineConfig({ +export default defineConfig(({ mode }) => ({ plugins: [ frappeui({ frappeProxy: true, @@ -65,6 +65,6 @@ export default defineConfig({ 'highlight.js', 'plyr', ], - exclude: ['frappe-ui'], + exclude: mode === 'production' ? [] : ['frappe-ui'], }, -}) +}))