import { sveltekit } from '@sveltejs/kit/vite'; import tailwindcss from '@tailwindcss/vite'; import { defineConfig } from 'vite'; export default defineConfig({ plugins: [tailwindcss(), sveltekit()], server: { port: 5189, strictPort: true, }, ssr: { noExternal: [ '@finance/shared', '@manacore/shared-icons', '@manacore/shared-ui', '@manacore/shared-tailwind', '@manacore/shared-theme', '@manacore/shared-theme-ui', '@manacore/shared-feedback-ui', '@manacore/shared-feedback-service', '@manacore/shared-feedback-types', '@manacore/shared-auth', '@manacore/shared-auth-ui', '@manacore/shared-branding', '@manacore/shared-subscription-ui', 'chart.js', 'svelte-chartjs', ], }, optimizeDeps: { exclude: [ '@finance/shared', '@manacore/shared-icons', '@manacore/shared-ui', '@manacore/shared-tailwind', '@manacore/shared-theme', '@manacore/shared-theme-ui', '@manacore/shared-feedback-ui', '@manacore/shared-feedback-service', '@manacore/shared-feedback-types', '@manacore/shared-auth', '@manacore/shared-auth-ui', '@manacore/shared-branding', '@manacore/shared-subscription-ui', ], }, });