fix: exclude frappe-ui from optimiseDeps only on local

This commit is contained in:
Jannat Patel
2025-12-08 12:37:04 +05:30
parent 6e93f952ab
commit 4dddb9f2e1

View File

@@ -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'],
},
})
}))