diff --git a/ui/vite.config.ts b/ui/vite.config.ts index 70e96ee..3630108 100644 --- a/ui/vite.config.ts +++ b/ui/vite.config.ts @@ -1,21 +1,21 @@ import { sveltekit } from '@sveltejs/kit/vite'; import tailwindcss from '@tailwindcss/vite'; -import { paraglideVitePlugin as paraglide } from '@inlang/paraglide-js'; import { defineConfig } from 'vite'; // Source maps are always generated so that the CI pipeline can upload them to // GlitchTip via glitchtip-cli after a release build. +// +// Note: paraglideVitePlugin is intentionally removed. It fetches an inlang +// plugin from CDN at build time, which (a) fails in offline CI and (b) +// regenerates messages.js with `export * as m` causing Rollup to tree-shake +// all message imports into (void 0). Compiled paraglide output is committed to +// git and updated manually via `npm run paraglide`. export default defineConfig({ build: { sourcemap: true }, plugins: [ tailwindcss(), - paraglide({ - project: './project.inlang', - outdir: './src/lib/paraglide', - strategy: ['url', 'cookie', 'baseLocale'] - }), sveltekit() ], ssr: {