-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvite.config.ts
More file actions
30 lines (28 loc) · 800 Bytes
/
Copy pathvite.config.ts
File metadata and controls
30 lines (28 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { defineConfig } from 'vite';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
import react from '@vitejs/plugin-react';
import { paraglideVitePlugin } from '@inlang/paraglide-js';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
paraglideVitePlugin({
project: './project.inlang',
outdir: './src/paraglide',
strategy: ['cookie', 'preferredLanguage', 'baseLocale'],
cookieName: 'PARAGLIDE_LOCALE',
}),
tanstackStart(),
react(),
],
optimizeDeps: {
exclude: ['lucide-react'],
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});